public static SortArray::sortByTitleElement($a, $b)
Sorts a structured array by 'title' key (no # prefix).
Callback for uasort().
array $a: First item for comparison. The compared items should be associative arrays that optionally include a 'title' key.
array $b: Second item for comparison.
int The comparison result for uasort().
public static function sortByTitleElement($a, $b) { return static::sortByKeyString($a, $b, 'title'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!SortArray.php/function/SortArray::sortByTitleElement/8.1.x