Solved Song sorting by dates (TDOR, TDRC, TDRL) not just YEAR
#17
Here's a little mySQL fiddle if it's of any use:

http://sqlfiddle.com/#!9/976283/5


It shows how you can generate the 'fauxDate' on the fly with a mySQL query - far simpler than I'd imagined!

Doing it this way would at least create the 'fauxDate' on the fly, then allow sorting to occur by Kodi.
It's not clear to me (but you will know) if you can manually sort the results first prior to creating objects (preferable), or if it the objects are created first then sorted, but at least you'd not be checking multiple fields at this point as the query will have done that work for you.
Reply


Messages In This Thread
RE: Song sorting order - by jjd-uk - 2016-08-23, 18:32
RE: Song sorting order - by jjd-uk - 2016-08-23, 18:36
RE: Song sorting order - by AnalogKid - 2016-08-23, 21:31
RE: Song sorting order - by scott967 - 2016-08-23, 21:59
RE: Song sorting order - by AnalogKid - 2016-08-24, 11:55
RE: Song sorting order - by jjd-uk - 2016-08-24, 13:43
RE: Song sorting order - by scott967 - 2016-08-24, 21:38
RE: Song sorting order - by DaveBlake - 2016-08-25, 09:11
RE: Song sorting order - by jjd-uk - 2016-08-25, 10:12
RE: Song sorting order - by AnalogKid - 2016-08-25, 13:27
RE: Song sorting order - by jjd-uk - 2016-08-25, 15:05
RE: Song sorting order - by DaveBlake - 2016-08-25, 15:30
RE: Song sorting order - by AnalogKid - 2016-08-25, 15:31
RE: Song sorting order - by AnalogKid - 2016-08-25, 16:38
RE: Song sorting order - by DaveBlake - 2016-08-25, 16:59
RE: Song sorting order - by AnalogKid - 2016-08-25, 17:18
RE: Song sorting order - by DaveBlake - 2016-08-25, 17:35
RE: Song sorting order - by AnalogKid - 2016-08-25, 17:52
Logout Mark Read Team Forum Stats Members Help
Song sorting by dates (TDOR, TDRC, TDRL) not just YEAR0