mirror of
https://github.com/beetbox/beets.git
synced 2025-12-09 18:12:19 +01:00
sort Album.items() output
This closes #181 and #255, which fixed the problem in one usage (importfeeds).
This commit is contained in:
parent
7f17266a6e
commit
2a22e6eae8
2 changed files with 4 additions and 1 deletions
|
|
@ -1516,7 +1516,7 @@ class Album(BaseAlbum):
|
|||
"""
|
||||
with self._library.transaction() as tx:
|
||||
rows = tx.query(
|
||||
'SELECT * FROM items WHERE album_id=?',
|
||||
'SELECT * FROM items WHERE album_id=? ORDER BY track',
|
||||
(self.id,)
|
||||
)
|
||||
return ResultIterator(rows)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ Changelog
|
|||
* :doc:`/plugins/lyrics`: Searches now strip "featuring" artists when
|
||||
searching for lyrics, which should increase the hit rate for these tracks.
|
||||
Thanks to Fabrice Laporte.
|
||||
* When listing the items in an album, the items are now always in track-number
|
||||
order. This should lead to more predictable listings from the
|
||||
:doc:`/plugins/importfeeds`.
|
||||
* :doc:`/plugins/web`: Fix an error when specifying the hostname on the
|
||||
command line.
|
||||
* :doc:`/plugins/web`: The underlying API was expanded slightly to support
|
||||
|
|
|
|||
Loading…
Reference in a new issue