Plugins list table: Use case-insensitive sorting.

props GaryJ.
fixes #32735.

git-svn-id: https://develop.svn.wordpress.org/trunk@33076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-07-03 21:52:46 +00:00
parent e7c286551f
commit 056fcf6162
1 changed files with 5 additions and 4 deletions

View File

@ -257,10 +257,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
if ( $a == $b ) if ( $a == $b )
return 0; return 0;
if ( 'DESC' == $order ) if ( 'DESC' == $order ) {
return ( $a < $b ) ? 1 : -1; return strcasecmp( $b, $a );
else } else {
return ( $a < $b ) ? -1 : 1; return strcasecmp( $a, $b );
}
} }
/** /**