+ /**
+ * {@inheritdoc}
+ */
+ public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) {
+ // Put always Global in 1st place and front page later if available.
+ if ($a->id() == 'global') {
+ return -1;
+ }
+ elseif ($b->id() == 'global') {
+ return 1;
+ }
+ elseif ($a->id() == 'front') {
+ return -1;
+ }
+ elseif ($b->id() == 'front') {
+ return 1;
+ }
+
+ // Use the default sort function.
+ return parent::sort($a, $b);
+ }
+