X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/a098a4fcbfe0649cfd9d171e59e822a4bd1b2ec4..refs/heads/master:/server/database.go 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 }