X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/8a42be0580469b8fb15fc3369724332f063dca4a..25d02cf0c3462805176f4193d675c4904221dca1:/server/database.go?ds=sidebyside diff --git a/server/database.go b/server/database.go index 5b1361c..c41b1ad 100644 --- a/server/database.go +++ b/server/database.go @@ -157,7 +157,7 @@ func (d *Database) DeletePlaylist(playlistId int) { func (d *Database) GetPlaylists() []Playlist { ret := make([]Playlist, 0) - rows, err := d.sqldb.Query("SELECT id, enabled, name, start_time FROM playlists ORDER BY id ASC") + rows, err := d.sqldb.Query("SELECT id, enabled, name, start_time FROM playlists ORDER BY start_time DESC") if err != nil { return ret }