I’ve been trying to develop the sort feature using ditto, however it seems to produce odd results.
I’ve created a snippet and then placed the snippet within my ditto code as part of the &sortBy=`` parameter.
code: ditto
[[Ditto? &startID=`0` &depth=`0` &tpl=`listingTpl` &filter=`template,6,1` &noResults=`<li> </li>` &sortBy=`[[sortby]]`]]
code: sortby snippet
<?php
echo $_GET['sortby'];
?>
It produces 99, 98,48,45,191,111 etc.
From the resulting pattern it seems to sort only the first,second digits and doesn’t detect the full price string value.
Any help would be welcome. Thanks.