Fall back to media file path when sorting

If files cannot be sorted by disc and track id, try by artist then
title.

One use case is a loose compilation of files with same album, album
artist, and no track numbers. File order was then undetermined, in
practice depended on insertion order in the database.
This commit is contained in:
lbonn
2020-12-18 16:48:36 +01:00
committed by Deluan Quintão
parent cd1c693a23
commit 15b289201a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const AlbumShowLayout = (props) => {
addLabel={false}
reference="albumSong"
target="album_id"
sort={{ field: 'discNumber asc, trackNumber asc', order: 'ASC' }}
sort={{ field: 'album', order: 'ASC' }}
perPage={0}
pagination={null}
>