From 4ebffc529f40e4a920d577c42141a263bc127ca1 Mon Sep 17 00:00:00 2001 From: gluap Date: Sat, 8 Jul 2023 13:17:48 +0200 Subject: [PATCH] default to reverse chronological sorting in the table (so users see their newest tracks on top). Fixes #350 --- frontend/src/pages/MyTracksPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/MyTracksPage.tsx b/frontend/src/pages/MyTracksPage.tsx index 38f0d4c..31bdcc7 100644 --- a/frontend/src/pages/MyTracksPage.tsx +++ b/frontend/src/pages/MyTracksPage.tsx @@ -156,7 +156,7 @@ function TrackFilters({ function TracksTable({ title }) { const [orderBy, setOrderBy] = useState("recordedAt"); - const [reversed, setReversed] = useState(false); + const [reversed, setReversed] = useState(true); const [showFilters, setShowFilters] = useState(false); const [filters, setFilters] = useState({}); const [selectedTracks, setSelectedTracks] = useState>(