Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: songs in album are sorted case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Jun 29, 2024
1 parent 8c945b1 commit eed3b53
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ class LocalMusicRepository(
suspend fun getAlbumInfo(albumId: Long): List<Song> {
return getAllSongs()
.filter { it.albumId == albumId }
// sort by title first in case the track number is always the same / not existent
.sortedBy { it.title.lowercase() }
// sort by track number if the tracks provide any
.sortedBy { it.trackNumber }
}

Expand Down

0 comments on commit eed3b53

Please sign in to comment.