
| Current Path : /var/www/html_old/12park.002/web/themes/bootstrap/src/Utility/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/12park.002/web/themes/bootstrap/src/Utility/SortArray.php |
<?php
namespace Drupal\bootstrap\Utility;
use Drupal\Component\Utility\SortArray as CoreSortArray;
/**
* Extends \Drupal\Component\Utility\SortArray.
*
* @ingroup utility
*/
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);
}
}