Helper callback for uasort() to sort configuration entities by weight and label.
Overrides ConfigEntityBase::sort
public static function sort($a, $b) {
$a_type = $a
->getType();
$b_type = $b
->getType();
if ($a_type != $b_type) {
return strnatcasecmp($a_type, $b_type);
}
return parent::sort($a, $b);
}