We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77944a0 commit 110c45fCopy full SHA for 110c45f
1 file changed
src/lib/helpers/regions.ts
@@ -18,11 +18,11 @@ export function filterRegions(regions: Models.ConsoleRegion[]): RegionOption[] {
18
// Check if regions are truly available (not disabled and available)
19
const aAvailable = !a.disabled && a.available;
20
const bAvailable = !b.disabled && b.available;
21
-
+
22
// Prioritize truly available regions
23
if (aAvailable && !bAvailable) return -1;
24
if (!aAvailable && bAvailable) return 1;
25
26
// Within the same availability group, sort alphabetically
27
return a.name.localeCompare(b.name);
28
})
0 commit comments