class SortArray

Extends \Drupal\Component\Utility\SortArray.

Hierarchy

  • class \Drupal\bootstrap\Utility\SortArray extends \Drupal\Component\Utility\SortArray

Expanded class hierarchy of SortArray

Related topics

1 file declares its use of SortArray

Namespace

Drupal\bootstrap\Utility
Source
class SortArray extends CoreSortArray {

  /**
   * {@inheritdoc}
   */
  public static function sortByKeyString($a, $b, $key) {
    $aString = Unicode::castToString(is_array($a) && isset($a[$key]) ? $a[$key] : '');
    $bString = Unicode::castToString(is_array($b) && isset($b[$key]) ? $b[$key] : '');
    return strnatcasecmp($aString, $bString);
  }

}

Members

Contains filters are case sensitive