mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Lokalizacja sortowania nazw scenerii; poprawki rozmiarów
This commit is contained in:
@@ -50,9 +50,7 @@ const sortStations = (a: Station, b: Station, sorter: { index: number; dir: numb
|
||||
break;
|
||||
}
|
||||
|
||||
if (a.name.toLowerCase() >= b.name.toLowerCase()) return sorter.dir;
|
||||
|
||||
return -sorter.dir;
|
||||
return sorter.dir == 1 ? a.name.localeCompare(b.name) : b.name.localeCompare(a.name);
|
||||
};
|
||||
|
||||
const filterStations = (station: Station, filters: Filter) => {
|
||||
|
||||
Reference in New Issue
Block a user