From 99c4ee9e19ee614b9436e628f7893d6fd117161d Mon Sep 17 00:00:00 2001 From: James Mills <prologic@shortcircuit.net.au> Date: Thu, 26 Mar 2020 15:06:29 +1000 Subject: [PATCH] Alias null sort criteria to timestamp --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 5150d74..2fd3e29 100644 --- a/app/app.go +++ b/app/app.go @@ -342,7 +342,7 @@ func (a *App) pageHandler(w http.ResponseWriter, r *http.Request) { switch sort { case "views": media.By(media.SortByViews).Sort(playlist) - case "timestamp": + case "", "timestamp": media.By(media.SortByTimestamp).Sort(playlist) default: // By default the playlist is sorted by Timestamp