Plugins list table: Use case-insensitive sorting.
props GaryJ. fixes #32735. Built from https://develop.svn.wordpress.org/trunk@33076 git-svn-id: http://core.svn.wordpress.org/trunk@33047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -257,10 +257,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
if ( $a == $b )
|
||||
return 0;
|
||||
|
||||
if ( 'DESC' == $order )
|
||||
return ( $a < $b ) ? 1 : -1;
|
||||
else
|
||||
return ( $a < $b ) ? -1 : 1;
|
||||
if ( 'DESC' == $order ) {
|
||||
return strcasecmp( $b, $a );
|
||||
} else {
|
||||
return strcasecmp( $a, $b );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user