mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
refactor: clean up whitespace in region sorting function
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user