($a['priority'] ?? 0); return $byPriority ?: strcmp($a['slug'] ?? '', $b['slug'] ?? ''); } }