From: RĂ©mi Duraffort Date: Sat, 8 Mar 2008 17:11:22 +0000 (+0100) Subject: Sort the playlist by album then by track number when sorting by album. X-Git-Tag: 0.9.0-test0~2239 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=438d9dee9b3d7d1623e64c1dd73d4dc96068d180;p=vlc Sort the playlist by album then by track number when sorting by album. Close #1492. --- diff --git a/src/playlist/sort.c b/src/playlist/sort.c index 34e69737e3..992b0357cb 100644 --- a/src/playlist/sort.c +++ b/src/playlist/sort.c @@ -188,6 +188,9 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items, else if( i_mode == SORT_ALBUM ) { DO_META_SORT( Album ); + /* Sort by tracknumber if albums are the same */ + if( i_test == 0 ) + DO_META_SORT_ADV( TrackNumber, VLC_TRUE ); } else if( i_mode == SORT_TRACK_NUMBER ) {