fix: order downloaded tracks by artist, album, disc_number and finally track number

This commit is contained in:
CappielloAntonio 2024-05-25 23:27:28 +02:00
parent b3b1c5b006
commit 4448a632af

View file

@ -12,7 +12,7 @@ import java.util.List;
@Dao @Dao
public interface DownloadDao { public interface DownloadDao {
@Query("SELECT * FROM download WHERE download_state = 1 ORDER BY artist, album, track ASC") @Query("SELECT * FROM download WHERE download_state = 1 ORDER BY artist, album, disc_number, track ASC")
LiveData<List<Download>> getAll(); LiveData<List<Download>> getAll();
@Query("SELECT * FROM download WHERE id = :id") @Query("SELECT * FROM download WHERE id = :id")