mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
Added sorting criteria in getDownloadedSong() query
This commit is contained in:
parent
ad5ef996e3
commit
a26c127356
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue