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:
parent
e7c286551f
commit
056fcf6162
|
@ -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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue