diff options
| author | James Mills <prologic@shortcircuit.net.au> | 2020-03-26 15:06:29 +1000 |
|---|---|---|
| committer | James Mills <prologic@shortcircuit.net.au> | 2020-03-26 15:06:29 +1000 |
| commit | 99c4ee9e19ee614b9436e628f7893d6fd117161d (patch) | |
| tree | dac1891c9a55af0ad1c8d960050dd2d93c3bf342 /app | |
| parent | 8727285bc504f18c0b32b1ee1626b625a587622e (diff) | |
Alias null sort criteria to timestamp
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.go | 2 |
1 files changed, 1 insertions, 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 |
