Skip to content

Commit

Permalink
pagination fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JRSaunders committed Aug 12, 2021
1 parent 2dca043 commit f8fe9e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DB/ShardMatrixStatements.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ private function orderResults( &$results, bool $row = false ) {
}
$aComp = substr( $aComp, 0, 72 );
$bComp = substr( $bComp, 0, 72 );
if ( ! ctype_digit( $aComp ) ) {
$aComp = ltrim( $aComp, '0' );
}
if ( ! ctype_digit( $bComp ) ) {
$bComp = ltrim( $bComp, '0' );
}
if ( $desc ) {
return strcmp( strtolower( $bComp ), strtolower( $aComp ) );
}
Expand Down

0 comments on commit f8fe9e7

Please sign in to comment.