You are here: Home » Topic » sorting smart playlist sorting smart playlist FireFly Media Server (formerly mt-daapd) › Firefly Media Server Forums › Firefly Media Server › Feature Requests › sorting smart playlist This topic contains 4 replies, has 2 voices, and was last updated by rpedde 11 years, 10 months ago. Log In Register Lost Password Viewing 5 posts - 1 through 5 (of 5 total) Author Posts 8th March 2006 at 9:52 am #197 goodnewscd It is nice if we can sort (order by ) the result return by the smart playlist. eg. year = 2006 AND path = “sundayschool” AND order fname I hardcoded the “order by fname” on the db-sql.c; however, it is better to have smart-parser.c to generate it based on the query. KK :unsure: 8th March 2006 at 10:57 am #4083 rpeddeParticipant Yup. It’s on my wishlist too. I was going to make it something like: option limit 50 option sort fname option direction ascending year=2006 and path="sundayschool" Or something. 19th March 2006 at 5:54 pm #4084 triParticipant Please allow multiple sort directives. Getting playlist sorted album by album needs something like: "order by songs.artist,songs.album,songs.disc,songs.track" which I actually hardcoded into my version of db-sql.c smart playlist handling. Does its work nicely especially if the compilation concatenating is enabled. – .-. .. 19th March 2006 at 5:56 pm #4085 triParticipant The Code box in my message above appears empty in my Firefox even though the preview showed it nicely. Anyways, it should be: “order by songs.artist,songs.album,songs.disc,songs.track” – .-. .. 20th March 2006 at 12:43 pm #4086 rpeddeParticipant Yeah, there will be multiple fields. Has to. I can’t really think of a playlist that would be sorted in less than three fields anyway. And sometimes in different directions. Author Posts Log In Register Lost Password Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic.