mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-30 06:12:07 +00:00
Added sorting criteria in getDownloadedSong() query
This commit is contained in:
@@ -70,7 +70,7 @@ public interface SongDao {
|
||||
@Query("SELECT * FROM song WHERE offline = 1 ORDER BY RANDOM() LIMIT :number")
|
||||
LiveData<List<Song>> getDownloadedSongSample(int number);
|
||||
|
||||
@Query("SELECT * FROM song WHERE offline = 1")
|
||||
@Query("SELECT * FROM song WHERE offline = 1 ORDER BY path, albumName, trackNumber")
|
||||
LiveData<List<Song>> getDownloadedSong();
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
|
||||
Reference in New Issue
Block a user