Alias null sort criteria to timestamp
This commit is contained in:
parent
8727285bc5
commit
99c4ee9e19
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue