mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
sort items by disc and track
Now album.items() returns results in a reasonable order.
This commit is contained in:
parent
3787b59430
commit
a3a25612ea
1 changed files with 1 additions and 1 deletions
|
|
@ -1221,7 +1221,7 @@ class Library(dbcore.Database):
|
|||
"""Get a sorted list of :class:`Item` objects matching the given
|
||||
query.
|
||||
"""
|
||||
order = '{0}, album'.format(
|
||||
order = '{0}, album, disc, track'.format(
|
||||
_orelse("artist_sort", "artist")
|
||||
)
|
||||
return self._fetch(Item, query, order)
|
||||
|
|
|
|||
Loading…
Reference in a new issue