{"action":"opened","issue":{"url":"https://api.github.com/repos/Alexey-Yakovenko/deadbeef/issues/1560","repository_url":"https://api.github.com/repos/Alexey-Yakovenko/deadbeef","labels_url":"https://api.github.com/repos/Alexey-Yakovenko/deadbeef/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/Alexey-Yakovenko/deadbeef/issues/1560/comments","events_url":"https://api.github.com/repos/Alexey-Yakovenko/deadbeef/issues/1560/events","html_url":"https://github.com/Alexey-Yakovenko/deadbeef/issues/1560","id":151510565,"number":1560,"title":"Tracks are added sorted by file name rather than metadata","user":{"login":"orbea","id":4204285,"avatar_url":"https://avatars.githubusercontent.com/u/4204285?v=3","gravatar_id":"","url":"https://api.github.com/users/orbea","html_url":"https://github.com/orbea","followers_url":"https://api.github.com/users/orbea/followers","following_url":"https://api.github.com/users/orbea/following{/other_user}","gists_url":"https://api.github.com/users/orbea/gists{/gist_id}","starred_url":"https://api.github.com/users/orbea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbea/subscriptions","organizations_url":"https://api.github.com/users/orbea/orgs","repos_url":"https://api.github.com/users/orbea/repos","events_url":"https://api.github.com/users/orbea/events{/privacy}","received_events_url":"https://api.github.com/users/orbea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-27T22:54:05Z","updated_at":"2016-04-27T22:54:05Z","closed_at":null,"body":"OS: `Slackware64-current`\r\n`deadbeef-8214e4f_2016.04.22_master-x86_64-1_git`\r\n\r\nWhen adding folders (albums) to a playlist the tracks are added in the order of the file names rather than being sorted by the track number included in the metadata as in a music player such as cmus or fb2k.\r\n\r\nIn the below example the albums `Monotony Fields` and `Shades Of` are added in the correct order while `Illusion's Play` and `angels of distress` are added in the incorrect track order.  This is especially annoying as the sort option is not capable of sorting only the highlighted tracks as in fb2k which requires the albums to be sorted by hand each time they are added to a playlist.\r\n```\r\nShape Of Despair$ ls *\r\nIllusion's Play:\r\nCurse Life.flac          Fragile Emptiness.flac  Sleep Mirrored.flac\r\nEntwined in Misery.flac  Illusion's Play.flac    Still-motion.flac\r\n\r\nMonotony Fields:\r\nShape Of Despair - Monotony Fields - 01 Reaching The Innermost.flac\r\nShape Of Despair - Monotony Fields - 02 Monotony Fields.flac\r\nShape Of Despair - Monotony Fields - 03 Descending Inner Night.flac\r\nShape Of Despair - Monotony Fields - 04 The Distant Dream Of Life.flac\r\nShape Of Despair - Monotony Fields - 05 Withdrawn.flac\r\nShape Of Despair - Monotony Fields - 06 In Longing.flac\r\nShape Of Despair - Monotony Fields - 07 The Blank Journey.flac\r\n\r\nShades Of:\r\n01 - ...In The Mist.flac  03 - Down Into The Stream.flac  05 - Sylvan-Night.flac\r\n02 - Woundheir.flac       04 - Shadowed Dreams.flac\r\n\r\nangels of distress:\r\nAngels Of Distress.flac  Quiet These Paintings Are.flac\r\nFallen.flac              To Live For My Death.flac\r\nNight's Dew.flac\r\n```"}}