I have created a button with an event "Set sort order" to sort my movies by purchaseDate. All works, but the movies are sorted from the first (older date) to the last (newer date), I want the opposite order.
Any help.
Flavio61 wrote:My date are in yyyy/mm/dd format.
Now I try with title order because is more simple to verify, but if I add :-1 the order is random M-P-E-W or S-O-W-B.
-1:lastplayed:artist:albumname:tracknumber:trackfilename
m_ski wrote:The above sort string gives me my music collection with the most recently played stuff at the top and works perfectly. (lastplayed is a datestamp which I automatically add to an album when it gets played)
<event>
<name>play album</name>
<multithreaded>False</multithreaded>
<commands>
<command>
<type>category</type>
<execute>play</execute>
<parameter>music</parameter>
</command>
<command>
<type>category</type>
<execute>variable set</execute>
<parameter>music</parameter>
<parameter>lastplayed</parameter>
<parameter>%datetime>u%</parameter>
</command>
<command>
<type>plugin</type>
<execute>command</execute>
<parameter>XScript</parameter>
<parameter>ExecScript</parameter>
<parameter>SortByVariable.txt music %variable>currentmusicsort%</parameter>
</command>
</commands>
</event>
<event>