sort Album.items() output

This closes #181 and #255, which fixed the problem in one usage (importfeeds).
This commit is contained in:
Adrian Sampson 2013-04-20 13:37:29 -07:00
parent 7f17266a6e
commit 2a22e6eae8
2 changed files with 4 additions and 1 deletions

View file

@ -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)

View file

@ -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