Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

feat(places): sort the places list by name, rating, age or last change (#2093)

Maurice1f464ce805a9
diff --git a/client/src/components/Planner/PlacesSidebar.test.tsx b/client/src/components/Planner/PlacesSidebar.test.tsx
index 1819565f4..5f7c7e89f 100644
--- a/client/src/components/Planner/PlacesSidebar.test.tsx
+++ b/client/src/components/Planner/PlacesSidebar.test.tsx
@@ -80,6 +80,24 @@ async function openImportMenu(user: User, item: RegExp) {
const inDialog = (name: RegExp) => within(screen.getByRole('dialog')).getByRole('button', { name });
describe('PlacesSidebar', () => {
+ it('FE-COMP-PLACES-2093: the sort menu reorders the list and remembers the choice', async () => {
+ const user = userEvent.setup();
+ localStorage.removeItem('trek:places-sort');
+ const places = [
+ buildPlace({ id: 1, name: 'Zeppelin Museum', rating_avg: 3, created_at: '2026-01-02' }),
+ buildPlace({ id: 2, name: 'Alpine Hut', rating_avg: 5, created_at: '2026-01-01' }),
+ ];
+ render(<PlacesSidebar {...defaultProps} places={places} />);
+ const order = () => screen.getAllByText(/Zeppelin Museum|Alpine Hut/).map(el => el.textContent);
+ expect(order()).toEqual(['Zeppelin Museum', 'Alpine Hut']);
+
+ await user.click(screen.getByRole('button', { name: 'Sort by' }));
+ await user.click(screen.getByRole('button', { name: 'Name (A–Z)' }));
+ expect(order()).toEqual(['Alpine Hut', 'Zeppelin Museum']);
+ expect(localStorage.getItem('trek:places-sort')).toBe('name');
+ localStorage.removeItem('trek:places-sort');
+ });
+
it('FE-COMP-PLACES-001: renders without crashing', () => {
render(<PlacesSidebar {...defaultProps} />);
expect(document.body).toBeInTheDocument();
diff --git a/client/src/components/Planner/PlacesSidebarHeader.tsx b/client/src/components/Planner/PlacesSidebarHeader.tsx
index a69906c93..69592e20e 100644
--- a/client/src/components/Planner/PlacesSidebarHeader.tsx
+++ b/client/src/components/Planner/PlacesSidebarHeader.tsx
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState, type MouseEvent as ReactMouseEvent, type ReactNode } from 'react'
-import { Search, Plus, X, Upload, FileDown, ListPlus, Check, Star, CalendarPlus, CalendarDays, ChevronDown, Tag, Globe2 } from 'lucide-react'
+import { Search, Plus, X, Upload, FileDown, ListPlus, Check, Star, CalendarPlus, CalendarDays, ChevronDown, Tag, Globe2, ArrowDownUp } from 'lucide-react'
import { Tooltip } from '../shared/Tooltip'
import { ContextMenu, useContextMenu } from '../shared/ContextMenu'
import { NEUTRAL_TINT, fs } from '../shared/DialogShell'
@@ -8,6 +8,7 @@ import { Eyebrow } from './bookings/bookingParts'
import { tintOf } from './planParts'
import { CategoryTile } from './PlacesBulkCategoryModal'
import type { PlacesFilter, SidebarState } from './usePlacesSidebar'
+import { PLACES_SORTS, type PlacesSort } from './placesSort'
/**
* Below this the two labels stop fitting side by side and both buttons fall back
@@ -91,6 +92,7 @@ export function PlacesHeader(S: SidebarState) {
<CategoryFilter {...S} />
<RatingFilter {...S} />
<LocalityFilterDropdown {...S} />
+ <SortDropdown {...S} />
</div>
<ActiveFilterChips {...S} />
</div>
@@ -326,6 +328,45 @@ function RatingFilter(S: SidebarState) {
)
}
+const SORT_LABEL_KEYS: Record<PlacesSort, string> = {
+ newest: 'places.sortNewest',
+ oldest: 'places.sortOldest',
+ name: 'places.sortName',
+ rating: 'places.sortRating',
+ updated: 'places.sortUpdated',
+}
+
+/** The list's order (#2093); marked while it is anything but newest first. */
+function SortDropdown(S: SidebarState) {
+ const { t, placesSort, setPlacesSort } = S
+ const [open, setOpen] = useState(false)
+ const active = placesSort !== 'newest'
+ return (
+ <FilterDropdown
+ label={t(SORT_LABEL_KEYS[placesSort])}
+ name={t('places.sortBy')}
+ active={active}
+ badge={active ? '' : undefined}
+ icon={<ArrowDownUp size={14} strokeWidth={2} />}
+ open={open}
+ setOpen={setOpen}
+ >
+ <div className="px-2 pb-1 pt-0.5 font-geist font-bold uppercase tracking-[.08em] text-content-faint" style={fs(9.5)}>{t('places.sortBy')}</div>
+ {PLACES_SORTS.map(opt => {
+ const on = placesSort === opt
+ return (
+ <button type="button" key={opt} onClick={() => { setPlacesSort(opt); setOpen(false) }} aria-pressed={on}
+ className={`flex w-full items-center gap-2 rounded-[9px] px-2 py-1.5 text-left transition-colors ${on ? 'bg-surface-tertiary' : 'hover:bg-surface-hover'}`}
+ style={fs(12.5, 'body')}>
+ <span className="min-w-0 flex-1 text-content">{t(SORT_LABEL_KEYS[opt])}</span>
+ {on && <Check size={13} strokeWidth={2.4} className="flex-none text-content-muted" />}
+ </button>
+ )
+ })}
+ </FilterDropdown>
+ )
+}
+
/**
* Country, or one region in it, from each place's resolved position (#2537). Shown once
* the trip spans more than one country or region; a single one has nothing to narrow.
diff --git a/client/src/components/Planner/placesSort.test.ts b/client/src/components/Planner/placesSort.test.ts
new file mode 100644
index 000000000..932618f6c
--- /dev/null
+++ b/client/src/components/Planner/placesSort.test.ts
@@ -0,0 +1,36 @@
+// FE-PLANNER-SORT-001 to FE-PLANNER-SORT-003
+import { afterEach, describe, expect, it } from 'vitest'
+import { readPlacesSort, sortPlaces, writePlacesSort } from './placesSort'
+
+const places = [
+ { id: 3, name: 'Zoo', rating_avg: null, created_at: '2026-03-03', updated_at: '2026-03-04' },
+ { id: 2, name: 'apple store', rating_avg: 4.5, created_at: '2026-02-02', updated_at: '2026-05-01' },
+ { id: 1, name: 'Bakery 10', rating_avg: 4.5, created_at: '2026-01-01' },
+ { id: 4, name: 'Bakery 9', rating_avg: 3, created_at: '2026-01-01' },
+]
+const ids = (list: { id: number }[]) => list.map(p => p.id)
+
+describe('sortPlaces (#2093)', () => {
+ afterEach(() => localStorage.clear())
+
+ it('FE-PLANNER-SORT-001: newest keeps the list as it came, oldest turns it round', () => {
+ expect(sortPlaces(places, 'newest')).toBe(places)
+ expect(ids(sortPlaces(places, 'oldest'))).toEqual([1, 4, 2, 3])
+ })
+
+ it('FE-PLANNER-SORT-002: name ignores case and reads numbers as numbers; rating sinks the unrated; changed uses the update time', () => {
+ expect(ids(sortPlaces(places, 'name', 'en'))).toEqual([2, 4, 1, 3])
+ expect(ids(sortPlaces(places, 'rating'))).toEqual([2, 1, 4, 3])
+ expect(ids(sortPlaces(places, 'updated'))).toEqual([2, 3, 4, 1])
+ })
+
+ it('FE-PLANNER-SORT-003: the choice is remembered, newest by clearing it, and junk reads as newest', () => {
+ expect(readPlacesSort()).toBe('newest')
+ writePlacesSort('rating')
+ expect(readPlacesSort()).toBe('rating')
+ writePlacesSort('newest')
+ expect(localStorage.getItem('trek:places-sort')).toBeNull()
+ localStorage.setItem('trek:places-sort', 'bogus')
+ expect(readPlacesSort()).toBe('newest')
+ })
+})
diff --git a/client/src/components/Planner/placesSort.ts b/client/src/components/Planner/placesSort.ts
new file mode 100644
index 000000000..40fd086d0
--- /dev/null
+++ b/client/src/components/Planner/placesSort.ts
@@ -0,0 +1,46 @@
+/**
+ * How the places list is ordered (#2093). List-only, like the rating floor: the
+ * map has no order to keep. 'newest' is the order the trip always had.
+ */
+export const PLACES_SORTS = ['newest', 'oldest', 'name', 'rating', 'updated'] as const
+export type PlacesSort = typeof PLACES_SORTS[number]
+
+const STORAGE_KEY = 'trek:places-sort'
+
+export function readPlacesSort(): PlacesSort {
+ try {
+ const stored = localStorage.getItem(STORAGE_KEY)
+ return (PLACES_SORTS as readonly string[]).includes(stored ?? '') ? stored as PlacesSort : 'newest'
+ } catch {
+ return 'newest'
+ }
+}
+
+export function writePlacesSort(sort: PlacesSort): void {
+ try {
+ if (sort === 'newest') localStorage.removeItem(STORAGE_KEY)
+ else localStorage.setItem(STORAGE_KEY, sort)
+ } catch {
+ // Private mode: the choice holds for this visit only.
+ }
+}
+
+interface Sortable { id: number; name?: string | null; rating_avg?: number | null; created_at?: string; updated_at?: string }
+
+/**
+ * The places in the chosen order. Ties, and places missing the field sorted on,
+ * fall back to the newest-first order, so unrated places sink under the rated
+ * ones instead of scattering between them.
+ */
+export function sortPlaces<P extends Sortable>(places: P[], sort: PlacesSort, locale?: string): P[] {
+ const newest = (a: P, b: P) => (b.created_at ?? '').localeCompare(a.created_at ?? '') || b.id - a.id
+ if (sort === 'newest') return places
+ const collator = new Intl.Collator(locale, { sensitivity: 'base', numeric: true })
+ const by: Record<Exclude<PlacesSort, 'newest'>, (a: P, b: P) => number> = {
+ oldest: (a, b) => -newest(a, b),
+ name: (a, b) => collator.compare((a.name ?? '').trim(), (b.name ?? '').trim()) || newest(a, b),
+ rating: (a, b) => ((b.rating_avg ?? -1) - (a.rating_avg ?? -1)) || newest(a, b),
+ updated: (a, b) => (b.updated_at ?? b.created_at ?? '').localeCompare(a.updated_at ?? a.created_at ?? '') || newest(a, b),
+ }
+ return [...places].sort(by[sort])
+}
diff --git a/client/src/components/Planner/usePlacesSidebar.ts b/client/src/components/Planner/usePlacesSidebar.ts
index 557aeedc3..8a9669849 100644
--- a/client/src/components/Planner/usePlacesSidebar.ts
+++ b/client/src/components/Planner/usePlacesSidebar.ts
@@ -1,6 +1,7 @@
import type React from 'react'
import { placeLocality } from '../../utils/placeLocality'
import { localityGroups, matchesLocality, type LocalityFilter } from './placeLocalityFilter'
+import { readPlacesSort, sortPlaces, writePlacesSort, type PlacesSort } from './placesSort'
import { useState, useMemo, useEffect, useLayoutEffect, useRef, useCallback } from 'react'
import { Pencil, Trash2, ExternalLink, Navigation, CalendarDays, Bookmark } from 'lucide-react'
import { useTranslation } from '../../i18n'
@@ -187,6 +188,9 @@ export function usePlacesSidebar(props: PlacesSidebarProps) {
// which put the best first but still left everything else on the list — no
// help at all when the point is to see only what the group actually rated.
const [ratingFilter, setRatingFilter] = useState<number | 'all'>('all')
+ // The list's order (#2093), remembered on this device.
+ const [placesSort, setPlacesSortState] = useState<PlacesSort>(readPlacesSort)
+ const setPlacesSort = useCallback((sort: PlacesSort) => { setPlacesSortState(sort); writePlacesSort(sort) }, [])
// Country, or country and region, from each place's resolved position (#2537). List-only,
// like the rating floor.
const [localityFilter, setLocalityFilter] = useState<LocalityFilter | null>(null)
@@ -296,8 +300,8 @@ export function usePlacesSidebar(props: PlacesSidebarProps) {
if (localityFilter && !matchesLocality(localityOf.get(p.id), localityFilter)) return false
return true
})
- return list
- }, [places, filter, categoryFilters, search, plannedIds, plannedFilterIds, ratingFilter, localityFilter, localityOf])
+ return sortPlaces(list, placesSort, language)
+ }, [places, filter, categoryFilters, search, plannedIds, plannedFilterIds, ratingFilter, localityFilter, localityOf, placesSort, language])
/**
* How many places each "show" choice would leave, under the category and search
@@ -404,6 +408,7 @@ export function usePlacesSidebar(props: PlacesSidebarProps) {
search, setSearch, filter, setFilter, pickFilter, filterCounts,
categoryFilters, setCategoryFilters,
ratingFilter, setRatingFilter,
+ placesSort, setPlacesSort,
localityFilter, setLocalityFilter, localities,
selectMode, setSelectMode, selectedIds, setSelectedIds, pendingDeleteIds, setPendingDeleteIds,
categoryPickerOpen, setCategoryPickerOpen,
diff --git a/shared/src/i18n/ar/places.ts b/shared/src/i18n/ar/places.ts
index 98cf7b963..c255df047 100644
--- a/shared/src/i18n/ar/places.ts
+++ b/shared/src/i18n/ar/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'عرض الرحلة كاملة',
'places.filterTracks': 'المسارات',
'places.filterByRating': 'تصفية حسب التقييم',
+ 'places.sortBy': 'الترتيب حسب',
+ 'places.sortNewest': 'المضافة مؤخرًا',
+ 'places.sortOldest': 'الأقدم أولًا',
+ 'places.sortName': 'الاسم (أ–ي)',
+ 'places.sortRating': 'الأعلى تقييمًا',
+ 'places.sortUpdated': 'المعدلة مؤخرًا',
'places.filterByLocation': 'تصفية حسب البلد أو المنطقة',
'places.allLocations': 'كل الدول',
'places.filterShow': 'عرض',
diff --git a/shared/src/i18n/az/places.ts b/shared/src/i18n/az/places.ts
index f6b46362d..cbb0de5cd 100644
--- a/shared/src/i18n/az/places.ts
+++ b/shared/src/i18n/az/places.ts
@@ -61,6 +61,12 @@ const places: TranslationStrings = {
'places.filterTracks': 'İzlər',
'places.filterByRating': 'Reytinqə görə filtrlə',
+ 'places.sortBy': 'Sıralama',
+ 'places.sortNewest': 'Son əlavə edilənlər',
+ 'places.sortOldest': 'Əvvəlcə ən köhnə',
+ 'places.sortName': 'Ad (A–Z)',
+ 'places.sortRating': 'Ən yüksək reytinq',
+ 'places.sortUpdated': 'Son dəyişdirilənlər',
'places.filterByLocation': 'Ölkə və ya regiona görə filtrlə',
'places.allLocations': 'Bütün ölkələr',
'places.filterShow': 'Göstər',
diff --git a/shared/src/i18n/br/places.ts b/shared/src/i18n/br/places.ts
index 1e7d06cea..0f912c26a 100644
--- a/shared/src/i18n/br/places.ts
+++ b/shared/src/i18n/br/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Mostrar a viagem inteira',
'places.filterTracks': 'Trilhas',
'places.filterByRating': 'Filtrar por avaliação',
+ 'places.sortBy': 'Ordenar por',
+ 'places.sortNewest': 'Adicionados recentemente',
+ 'places.sortOldest': 'Mais antigos primeiro',
+ 'places.sortName': 'Nome (A–Z)',
+ 'places.sortRating': 'Melhor avaliados',
+ 'places.sortUpdated': 'Alterados recentemente',
'places.filterByLocation': 'Filtrar por país ou região',
'places.allLocations': 'Todos os países',
'places.filterShow': 'Mostrar',
diff --git a/shared/src/i18n/ca/places.ts b/shared/src/i18n/ca/places.ts
index a20af7c20..d21ef1eef 100644
--- a/shared/src/i18n/ca/places.ts
+++ b/shared/src/i18n/ca/places.ts
@@ -51,6 +51,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Mostra tot el viatge',
'places.filterTracks': 'Rutes',
'places.filterByRating': 'Filtra per valoració',
+ 'places.sortBy': 'Ordena per',
+ 'places.sortNewest': 'Afegits recentment',
+ 'places.sortOldest': 'Primer els més antics',
+ 'places.sortName': 'Nom (A–Z)',
+ 'places.sortRating': 'Millor valorats',
+ 'places.sortUpdated': 'Modificats recentment',
'places.filterByLocation': 'Filtra per país o regió',
'places.allLocations': 'Tots els països',
'places.filterShow': 'Mostrar',
diff --git a/shared/src/i18n/cs/places.ts b/shared/src/i18n/cs/places.ts
index cdc9e177c..4961fd481 100644
--- a/shared/src/i18n/cs/places.ts
+++ b/shared/src/i18n/cs/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Zobrazit celou cestu',
'places.filterTracks': 'Trasy',
'places.filterByRating': 'Filtrovat podle hodnocení',
+ 'places.sortBy': 'Řadit podle',
+ 'places.sortNewest': 'Naposledy přidané',
+ 'places.sortOldest': 'Nejstarší první',
+ 'places.sortName': 'Název (A–Z)',
+ 'places.sortRating': 'Nejlépe hodnocené',
+ 'places.sortUpdated': 'Naposledy změněné',
'places.filterByLocation': 'Filtrovat podle země nebo regionu',
'places.allLocations': 'Všechny země',
'places.filterShow': 'Zobrazit',
diff --git a/shared/src/i18n/de/places.ts b/shared/src/i18n/de/places.ts
index 9e0942bc6..e4256f570 100644
--- a/shared/src/i18n/de/places.ts
+++ b/shared/src/i18n/de/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Ganze Reise anzeigen',
'places.filterTracks': 'Tracks',
'places.filterByRating': 'Nach Bewertung filtern',
+ 'places.sortBy': 'Sortieren nach',
+ 'places.sortNewest': 'Zuletzt hinzugefügt',
+ 'places.sortOldest': 'Älteste zuerst',
+ 'places.sortName': 'Name (A–Z)',
+ 'places.sortRating': 'Beste Bewertung',
+ 'places.sortUpdated': 'Zuletzt geändert',
'places.filterByLocation': 'Nach Land oder Region filtern',
'places.allLocations': 'Alle Länder',
'places.filterShow': 'Anzeigen',
diff --git a/shared/src/i18n/en/places.ts b/shared/src/i18n/en/places.ts
index 157611d2a..cc01a029e 100644
--- a/shared/src/i18n/en/places.ts
+++ b/shared/src/i18n/en/places.ts
@@ -53,6 +53,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Show the whole trip',
'places.filterTracks': 'Tracks',
'places.filterByRating': 'Filter by rating',
+ 'places.sortBy': 'Sort by',
+ 'places.sortNewest': 'Recently added',
+ 'places.sortOldest': 'Oldest first',
+ 'places.sortName': 'Name (A–Z)',
+ 'places.sortRating': 'Highest rated',
+ 'places.sortUpdated': 'Recently changed',
'places.filterByLocation': 'Filter by country or region',
'places.allLocations': 'All countries',
/** The button that opens the filter panel, and the panel's name. */
diff --git a/shared/src/i18n/es/places.ts b/shared/src/i18n/es/places.ts
index 7dbc15657..37199ce1f 100644
--- a/shared/src/i18n/es/places.ts
+++ b/shared/src/i18n/es/places.ts
@@ -53,6 +53,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Mostrar todo el viaje',
'places.filterTracks': 'Rutas',
'places.filterByRating': 'Filtrar por valoración',
+ 'places.sortBy': 'Ordenar por',
+ 'places.sortNewest': 'Añadidos recientemente',
+ 'places.sortOldest': 'Más antiguos primero',
+ 'places.sortName': 'Nombre (A–Z)',
+ 'places.sortRating': 'Mejor valorados',
+ 'places.sortUpdated': 'Modificados recientemente',
'places.filterByLocation': 'Filtrar por país o región',
'places.allLocations': 'Todos los países',
'places.filterShow': 'Mostrar',
diff --git a/shared/src/i18n/et/places.ts b/shared/src/i18n/et/places.ts
index bde40e07f..05a91273e 100644
--- a/shared/src/i18n/et/places.ts
+++ b/shared/src/i18n/et/places.ts
@@ -53,6 +53,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Näita kogu reisi',
'places.filterTracks': 'Rajad',
'places.filterByRating': 'Filtreeri hinnangu järgi',
+ 'places.sortBy': 'Sorteeri',
+ 'places.sortNewest': 'Viimati lisatud',
+ 'places.sortOldest': 'Vanimad enne',
+ 'places.sortName': 'Nimi (A–Z)',
+ 'places.sortRating': 'Kõrgeima hindega',
+ 'places.sortUpdated': 'Viimati muudetud',
'places.filterByLocation': 'Filtreeri riigi või piirkonna järgi',
'places.allLocations': 'Kõik riigid',
'places.filterShow': 'Näita',
diff --git a/shared/src/i18n/fr/places.ts b/shared/src/i18n/fr/places.ts
index ce5105028..920eaa0e5 100644
--- a/shared/src/i18n/fr/places.ts
+++ b/shared/src/i18n/fr/places.ts
@@ -53,6 +53,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Afficher tout le voyage',
'places.filterTracks': 'Traces',
'places.filterByRating': 'Filtrer par note',
+ 'places.sortBy': 'Trier par',
+ 'places.sortNewest': 'Ajoutés récemment',
+ 'places.sortOldest': "Plus anciens d'abord",
+ 'places.sortName': 'Nom (A–Z)',
+ 'places.sortRating': 'Mieux notés',
+ 'places.sortUpdated': 'Modifiés récemment',
'places.filterByLocation': 'Filtrer par pays ou région',
'places.allLocations': 'Tous les pays',
'places.filterShow': 'Afficher',
diff --git a/shared/src/i18n/gr/places.ts b/shared/src/i18n/gr/places.ts
index 6a39af87a..3dd5c27d3 100644
--- a/shared/src/i18n/gr/places.ts
+++ b/shared/src/i18n/gr/places.ts
@@ -53,6 +53,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Εμφάνιση όλου του ταξιδιού',
'places.filterTracks': 'Ίχνη',
'places.filterByRating': 'Φιλτράρισμα κατά βαθμολογία',
+ 'places.sortBy': 'Ταξινόμηση κατά',
+ 'places.sortNewest': 'Πρόσφατα προστέθηκαν',
+ 'places.sortOldest': 'Τα παλαιότερα πρώτα',
+ 'places.sortName': 'Όνομα (Α–Ω)',
+ 'places.sortRating': 'Υψηλότερη βαθμολογία',
+ 'places.sortUpdated': 'Πρόσφατα αλλαγμένα',
'places.filterByLocation': 'Φιλτράρισμα ανά χώρα ή περιοχή',
'places.allLocations': 'Όλες οι χώρες',
'places.filterShow': 'Εμφάνιση',
diff --git a/shared/src/i18n/hu/places.ts b/shared/src/i18n/hu/places.ts
index 4a9baf7e9..fb868180f 100644
--- a/shared/src/i18n/hu/places.ts
+++ b/shared/src/i18n/hu/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Teljes utazás megjelenítése',
'places.filterTracks': 'Nyomvonalak',
'places.filterByRating': 'Szűrés értékelés szerint',
+ 'places.sortBy': 'Rendezés',
+ 'places.sortNewest': 'Legutóbb hozzáadott',
+ 'places.sortOldest': 'Legrégebbi elöl',
+ 'places.sortName': 'Név (A–Z)',
+ 'places.sortRating': 'Legjobbra értékelt',
+ 'places.sortUpdated': 'Legutóbb módosított',
'places.filterByLocation': 'Szűrés ország vagy régió szerint',
'places.allLocations': 'Minden ország',
'places.filterShow': 'Megjelenítés',
diff --git a/shared/src/i18n/id/places.ts b/shared/src/i18n/id/places.ts
index 51fd45dc0..0adf8a930 100644
--- a/shared/src/i18n/id/places.ts
+++ b/shared/src/i18n/id/places.ts
@@ -51,6 +51,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Tampilkan seluruh perjalanan',
'places.filterTracks': 'Trek',
'places.filterByRating': 'Saring menurut penilaian',
+ 'places.sortBy': 'Urutkan',
+ 'places.sortNewest': 'Baru ditambahkan',
+ 'places.sortOldest': 'Terlama dulu',
+ 'places.sortName': 'Nama (A–Z)',
+ 'places.sortRating': 'Rating tertinggi',
+ 'places.sortUpdated': 'Baru diubah',
'places.filterByLocation': 'Saring menurut negara atau wilayah',
'places.allLocations': 'Semua negara',
'places.filterShow': 'Tampilkan',
diff --git a/shared/src/i18n/it/places.ts b/shared/src/i18n/it/places.ts
index b8e7793b8..c4044df34 100644
--- a/shared/src/i18n/it/places.ts
+++ b/shared/src/i18n/it/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Mostra tutto il viaggio',
'places.filterTracks': 'Tracce',
'places.filterByRating': 'Filtra per valutazione',
+ 'places.sortBy': 'Ordina per',
+ 'places.sortNewest': 'Aggiunti di recente',
+ 'places.sortOldest': 'Prima i più vecchi',
+ 'places.sortName': 'Nome (A–Z)',
+ 'places.sortRating': 'Più votati',
+ 'places.sortUpdated': 'Modificati di recente',
'places.filterByLocation': 'Filtra per paese o regione',
'places.allLocations': 'Tutti i paesi',
'places.filterShow': 'Mostra',
diff --git a/shared/src/i18n/ja/places.ts b/shared/src/i18n/ja/places.ts
index d35febc6b..3dd52b673 100644
--- a/shared/src/i18n/ja/places.ts
+++ b/shared/src/i18n/ja/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': '旅行全体を表示',
'places.filterTracks': 'トラック',
'places.filterByRating': '評価で絞り込む',
+ 'places.sortBy': '並べ替え',
+ 'places.sortNewest': '追加が新しい順',
+ 'places.sortOldest': '古い順',
+ 'places.sortName': '名前順',
+ 'places.sortRating': '評価が高い順',
+ 'places.sortUpdated': '更新が新しい順',
'places.filterByLocation': '国または地域で絞り込む',
'places.allLocations': 'すべての国',
'places.filterShow': '表示',
diff --git a/shared/src/i18n/ko/places.ts b/shared/src/i18n/ko/places.ts
index d06eea73c..428da6166 100644
--- a/shared/src/i18n/ko/places.ts
+++ b/shared/src/i18n/ko/places.ts
@@ -51,6 +51,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': '전체 여행 보기',
'places.filterTracks': '트랙',
'places.filterByRating': '평점으로 필터링',
+ 'places.sortBy': '정렬',
+ 'places.sortNewest': '최근 추가순',
+ 'places.sortOldest': '오래된 순',
+ 'places.sortName': '이름순',
+ 'places.sortRating': '평점 높은 순',
+ 'places.sortUpdated': '최근 수정순',
'places.filterByLocation': '국가 또는 지역으로 필터링',
'places.allLocations': '모든 국가',
'places.filterShow': '표시',
diff --git a/shared/src/i18n/nl/places.ts b/shared/src/i18n/nl/places.ts
index cc6914863..422095c64 100644
--- a/shared/src/i18n/nl/places.ts
+++ b/shared/src/i18n/nl/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Hele reis tonen',
'places.filterTracks': 'Tracks',
'places.filterByRating': 'Filteren op beoordeling',
+ 'places.sortBy': 'Sorteren op',
+ 'places.sortNewest': 'Laatst toegevoegd',
+ 'places.sortOldest': 'Oudste eerst',
+ 'places.sortName': 'Naam (A–Z)',
+ 'places.sortRating': 'Hoogst beoordeeld',
+ 'places.sortUpdated': 'Laatst gewijzigd',
'places.filterByLocation': 'Filteren op land of regio',
'places.allLocations': 'Alle landen',
'places.filterShow': 'Tonen',
diff --git a/shared/src/i18n/pl/places.ts b/shared/src/i18n/pl/places.ts
index e8431c18f..b6d6773c2 100644
--- a/shared/src/i18n/pl/places.ts
+++ b/shared/src/i18n/pl/places.ts
@@ -42,6 +42,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Pokaż całą podróż',
'places.filterTracks': 'Trasy',
'places.filterByRating': 'Filtruj według oceny',
+ 'places.sortBy': 'Sortuj według',
+ 'places.sortNewest': 'Ostatnio dodane',
+ 'places.sortOldest': 'Najstarsze najpierw',
+ 'places.sortName': 'Nazwa (A–Z)',
+ 'places.sortRating': 'Najwyżej oceniane',
+ 'places.sortUpdated': 'Ostatnio zmienione',
'places.filterByLocation': 'Filtruj według kraju lub regionu',
'places.allLocations': 'Wszystkie kraje',
'places.filterShow': 'Pokaż',
diff --git a/shared/src/i18n/ru/places.ts b/shared/src/i18n/ru/places.ts
index df366fc82..98f31eb99 100644
--- a/shared/src/i18n/ru/places.ts
+++ b/shared/src/i18n/ru/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Показать всю поездку',
'places.filterTracks': 'Треки',
'places.filterByRating': 'Фильтр по оценке',
+ 'places.sortBy': 'Сортировка',
+ 'places.sortNewest': 'Недавно добавленные',
+ 'places.sortOldest': 'Сначала старые',
+ 'places.sortName': 'Название (А–Я)',
+ 'places.sortRating': 'С высоким рейтингом',
+ 'places.sortUpdated': 'Недавно изменённые',
'places.filterByLocation': 'Фильтр по стране или региону',
'places.allLocations': 'Все страны',
'places.filterShow': 'Показать',
diff --git a/shared/src/i18n/sk/places.ts b/shared/src/i18n/sk/places.ts
index c5d391552..edcdf574f 100644
--- a/shared/src/i18n/sk/places.ts
+++ b/shared/src/i18n/sk/places.ts
@@ -53,6 +53,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Zobraziť celú cestu',
'places.filterTracks': 'Trasy',
'places.filterByRating': 'Filtrovať podľa hodnotenia',
+ 'places.sortBy': 'Zoradiť podľa',
+ 'places.sortNewest': 'Naposledy pridané',
+ 'places.sortOldest': 'Najstaršie prvé',
+ 'places.sortName': 'Názov (A–Z)',
+ 'places.sortRating': 'Najlepšie hodnotené',
+ 'places.sortUpdated': 'Naposledy zmenené',
'places.filterByLocation': 'Filtrovať podľa krajiny alebo regiónu',
'places.allLocations': 'Všetky krajiny',
'places.filterShow': 'Zobraziť',
diff --git a/shared/src/i18n/sv/places.ts b/shared/src/i18n/sv/places.ts
index 7b49a52f4..f81366a1a 100644
--- a/shared/src/i18n/sv/places.ts
+++ b/shared/src/i18n/sv/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Visa hela resan',
'places.filterTracks': 'Spår',
'places.filterByRating': 'Filtrera efter betyg',
+ 'places.sortBy': 'Sortera efter',
+ 'places.sortNewest': 'Senast tillagda',
+ 'places.sortOldest': 'Äldsta först',
+ 'places.sortName': 'Namn (A–Ö)',
+ 'places.sortRating': 'Högst betyg',
+ 'places.sortUpdated': 'Senast ändrade',
'places.filterByLocation': 'Filtrera efter land eller region',
'places.allLocations': 'Alla länder',
'places.filterShow': 'Visa',
diff --git a/shared/src/i18n/th/places.ts b/shared/src/i18n/th/places.ts
index 9a7ee2040..e692a4a4b 100644
--- a/shared/src/i18n/th/places.ts
+++ b/shared/src/i18n/th/places.ts
@@ -46,6 +46,12 @@ const places: TranslationStrings = {
'places.planned': 'วางแผนแล้ว',
'places.filterTracks': 'แทร็ก',
'places.filterByRating': 'กรองตามคะแนน',
+ 'places.sortBy': 'เรียงตาม',
+ 'places.sortNewest': 'เพิ่มล่าสุด',
+ 'places.sortOldest': 'เก่าสุดก่อน',
+ 'places.sortName': 'ชื่อ (ก–ฮ)',
+ 'places.sortRating': 'คะแนนสูงสุด',
+ 'places.sortUpdated': 'แก้ไขล่าสุด',
'places.filterByLocation': 'กรองตามประเทศหรือภูมิภาค',
'places.allLocations': 'ทุกประเทศ',
'places.filterShow': 'แสดง',
diff --git a/shared/src/i18n/tr/places.ts b/shared/src/i18n/tr/places.ts
index 1ba88a6ee..d53521eb0 100644
--- a/shared/src/i18n/tr/places.ts
+++ b/shared/src/i18n/tr/places.ts
@@ -54,6 +54,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Tüm yolculuğu göster',
'places.filterTracks': 'Parçalar',
'places.filterByRating': 'Puana göre filtrele',
+ 'places.sortBy': 'Sırala',
+ 'places.sortNewest': 'Son eklenenler',
+ 'places.sortOldest': 'Önce en eski',
+ 'places.sortName': 'Ad (A–Z)',
+ 'places.sortRating': 'En yüksek puanlı',
+ 'places.sortUpdated': 'Son değiştirilenler',
'places.filterByLocation': 'Ülke veya bölgeye göre filtrele',
'places.allLocations': 'Tüm ülkeler',
'places.filterShow': 'Göster',
diff --git a/shared/src/i18n/uk/places.ts b/shared/src/i18n/uk/places.ts
index 29e3a3c99..76cb21e91 100644
--- a/shared/src/i18n/uk/places.ts
+++ b/shared/src/i18n/uk/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Показати всю подорож',
'places.filterTracks': 'Треки',
'places.filterByRating': 'Фільтр за оцінкою',
+ 'places.sortBy': 'Сортування',
+ 'places.sortNewest': 'Нещодавно додані',
+ 'places.sortOldest': 'Спочатку старі',
+ 'places.sortName': 'Назва (А–Я)',
+ 'places.sortRating': 'З найвищою оцінкою',
+ 'places.sortUpdated': 'Нещодавно змінені',
'places.filterByLocation': 'Фільтр за країною або регіоном',
'places.allLocations': 'Усі країни',
'places.filterShow': 'Показати',
diff --git a/shared/src/i18n/vi/places.ts b/shared/src/i18n/vi/places.ts
index 993ef304d..1b0eba4ce 100644
--- a/shared/src/i18n/vi/places.ts
+++ b/shared/src/i18n/vi/places.ts
@@ -52,6 +52,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': 'Hiện toàn bộ chuyến đi',
'places.filterTracks': 'Đường đi',
'places.filterByRating': 'Lọc theo đánh giá',
+ 'places.sortBy': 'Sắp xếp theo',
+ 'places.sortNewest': 'Mới thêm gần đây',
+ 'places.sortOldest': 'Cũ nhất trước',
+ 'places.sortName': 'Tên (A–Z)',
+ 'places.sortRating': 'Đánh giá cao nhất',
+ 'places.sortUpdated': 'Mới thay đổi gần đây',
'places.filterByLocation': 'Lọc theo quốc gia hoặc vùng',
'places.allLocations': 'Tất cả quốc gia',
'places.filterShow': 'Hiển thị',
diff --git a/shared/src/i18n/zh-TW/places.ts b/shared/src/i18n/zh-TW/places.ts
index 8ed810e6b..c9a73ad0f 100644
--- a/shared/src/i18n/zh-TW/places.ts
+++ b/shared/src/i18n/zh-TW/places.ts
@@ -51,6 +51,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': '顯示整趟行程',
'places.filterTracks': '路線',
'places.filterByRating': '依評分篩選',
+ 'places.sortBy': '排序方式',
+ 'places.sortNewest': '最近新增',
+ 'places.sortOldest': '最早優先',
+ 'places.sortName': '名稱',
+ 'places.sortRating': '評分最高',
+ 'places.sortUpdated': '最近修改',
'places.filterByLocation': '依國家或地區篩選',
'places.allLocations': '所有國家',
'places.filterShow': '顯示',
diff --git a/shared/src/i18n/zh/places.ts b/shared/src/i18n/zh/places.ts
index 69ef570bd..43dc91793 100644
--- a/shared/src/i18n/zh/places.ts
+++ b/shared/src/i18n/zh/places.ts
@@ -51,6 +51,12 @@ const places: TranslationStrings = {
'places.dayScopedClear': '显示整个行程',
'places.filterTracks': '路线',
'places.filterByRating': '按评分筛选',
+ 'places.sortBy': '排序方式',
+ 'places.sortNewest': '最近添加',
+ 'places.sortOldest': '最早优先',
+ 'places.sortName': '名称',
+ 'places.sortRating': '评分最高',
+ 'places.sortUpdated': '最近修改',
'places.filterByLocation': '按国家或地区筛选',
'places.allLocations': '所有国家',
'places.filterShow': '显示',