WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/03/2015 09:52:46 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Plugins list table: Use case-insensitive sorting.

props GaryJ.
fixes #32735.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r33010 r33076  
    258258            return 0;
    259259
    260         if ( 'DESC' == $order )
    261             return ( $a < $b ) ? 1 : -1;
    262         else
    263             return ( $a < $b ) ? -1 : 1;
     260        if ( 'DESC' == $order ) {
     261            return strcasecmp( $b, $a );
     262        } else {
     263            return strcasecmp( $a, $b );
     264        }
    264265    }
    265266
Note: See TracChangeset for help on using the changeset viewer.