Skip to content

Commit d09bb14

Browse files
Update src/DB_Command.php
Co-authored-by: Alain Schlesser <[email protected]>
1 parent 14895b3 commit d09bb14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ function ( $a, $b ) use ( $order, $orderby ) {
12111211
list( $first, $second ) = $orderby_array;
12121212

12131213
if ( 'size' === $orderby ) {
1214-
return $first['Bytes'] > $second['Bytes'] ? 1 : -1;
1214+
return $first['Bytes'] <=> $second['Bytes'];
12151215
}
12161216

12171217
return strcmp( $first['Name'], $second['Name'] );

0 commit comments

Comments
 (0)