Callback function for usort() to naturally sort themes by name.
Description
Accesses the Name header directly from the class for maximum speed.
Would choke on HTML but we don’t care enough to slow it down with strip_tags().
Parameters
Source
private static function _name_sort( $a, $b ) {
return strnatcasecmp( $a->headers['Name'], $b->headers['Name'] );
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.