ソースを参照

fix: order songs response by album first

Fela Maslen 5 年 前
コミット
cb35ab1522
1 ファイル変更1 行追加1 行削除
  1. 1 1
      music-player/pkg/repository/songs.go

+ 1 - 1
music-player/pkg/repository/songs.go

@@ -90,7 +90,7 @@ func SelectSongsByArtist(db *sqlx.DB, artist string) (songs *[]*read.SongExterna
     ,duration
   from songs
   where artist = $1
-  order by track_number, title, album
+  order by album, track_number, title
   `, artist)
 
   return