Updated Map View
This commit is contained in:
@@ -47,7 +47,8 @@ const CLASS_ORDER: Record<string, number> = {
|
||||
'Premium Economy': 2,
|
||||
'Business': 3,
|
||||
'First': 4,
|
||||
'Private': 5
|
||||
'Private': 5,
|
||||
'Crew' : 6,
|
||||
}
|
||||
|
||||
const customKeySort = {
|
||||
@@ -57,6 +58,9 @@ const customKeySort = {
|
||||
airline: (a: Flight['airline'], b: Flight['airline']) => {
|
||||
return (a?.iata_code ?? '').localeCompare(b?.iata_code ?? '')
|
||||
},
|
||||
aircraft: (a: Flight['aircraft'], b: Flight['aircraft']) => {
|
||||
return (a?.designator ?? '').localeCompare(b?.designator ?? '')
|
||||
},
|
||||
duration: (a: any, b: any) => (a ?? 0) - (b ?? 0),
|
||||
departure_airport: (a: Flight['departure_airport'], b: Flight['departure_airport']) => {
|
||||
return (a?.display_code ?? '').localeCompare(b?.display_code ?? '')
|
||||
|
||||
Reference in New Issue
Block a user