Commit 100867fb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Album: Sort tracks by track number

parent c43b22bd
......@@ -114,7 +114,7 @@ std::vector<MediaPtr> Album::tracks() const
{
static const std::string req = "SELECT med.* FROM " + policy::MediaTable::Name + " med "
" LEFT JOIN " + policy::AlbumTrackTable::Name + " att ON att.media_id = med.id_media "
" WHERE att.album_id = ?";
" WHERE att.album_id = ? ORDER BY att.track_number";
return Media::fetchAll( m_dbConnection, req, m_id );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment