Posts: 437
Joined: Nov 2009
Reputation:
0
2012-01-27, 17:53
(This post was last modified: 2012-01-28, 04:10 by GJones.)
Order by Title sorts by title, not sorttitle. While not a problem if you are viewing the playlist directly (using sort by name), it presents a problem if you use the playlist in a script (PseudoTV).
I searched but could not find the discrepancy discussed.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
If you nut out the relevant SQL for sorting by the suitable combination of field A and field B (should be something like choose field A if it's non-empty, else use field B) then we can hook it up.
Posts: 437
Joined: Nov 2009
Reputation:
0
The docs seem to imply that it would but the case statement has two different forms in mysql. Neither seems to exactly match the form used in sqlite.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
In that case I'll implement it for sqlite and ping firnsy to ensure that mysql is taken care of - will push to a branch in github in case you want to make some changes/test it out etc.