Fix order of Playlist XML nodes changing on Session save, bug #7053
authorTim Mayberry <mojofunk@gmail.com>
Mon, 3 Oct 2016 02:41:42 +0000 (12:41 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Mon, 10 Oct 2016 01:00:35 +0000 (11:00 +1000)
commitf8a098f3dc9785b1b8bed139d11cb8bedd85c432
tree07fab9167b8f31d795163eaab4f9730387dbe3fd
parent66d29e8ca8b186045fb6f6851bf52448fbac2633
Fix order of Playlist XML nodes changing on Session save, bug #7053

Playlists in SessionPlaylists are sorted by pointer/address which means the
order they are written in the Session XML file usually changes the first time
the Session is re-saved.

Sort the Playlists by PBD::ID before iterating and writing XML so that
playlists are always written in the same order.
libs/ardour/session_playlists.cc