refactor: clean up whitespace in region sorting function

This commit is contained in:
Christy Jacob
2025-08-22 15:19:36 +05:30
parent 77944a09f9
commit 110c45f753
+2 -2
View File
@@ -18,11 +18,11 @@ export function filterRegions(regions: Models.ConsoleRegion[]): RegionOption[] {
// Check if regions are truly available (not disabled and available)
const aAvailable = !a.disabled && a.available;
const bAvailable = !b.disabled && b.available;
// Prioritize truly available regions
if (aAvailable && !bAvailable) return -1;
if (!aAvailable && bAvailable) return 1;
// Within the same availability group, sort alphabetically
return a.name.localeCompare(b.name);
})