Alias null sort criteria to timestamp

This commit is contained in:
James Mills 2020-03-26 15:06:29 +10:00
parent 8727285bc5
commit 99c4ee9e19
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6

View file

@ -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