Hi all,
Having a little problem here, trying to do a orderby on 2 fields, first on works fine, thats just on the status, 2nd one is a custom date field. This however is not working at all.
{exp:weblog:entries weblog="wip" status="not closed" orderby="status|completion" sort="desc|desc"}
<tr class="{switch='band1|band2'}">
<td valign="top"><p>{title}</p></td><td valign="top">{description}</td><td valign="top"><p>{support_number}</p></td><td valign="top"><p>{completion format="%d/%m/%Y"}<br />{completion}</p></td><td valign="top"><p>{quote}</p></td><td valign="top">{piroity}</td><td class="last" valign="top"><p>{status}</p></td>
</tr>
{/exp:weblog:entries}
Basically they get ordered by the status with no problems, it is however not ordering it by the date at all. Am I doing something stupid here or is this a bug with EE? Or does orderby for some reason not work on a custom date field even when its just returning a integer???
Thanks
Steven Lockey
Edit: More info-
Works fine if I just do ‘orderby=“completion”’ but ‘orderby=“status|completion”’ just does exactly the same as ‘orderby=“status”’ instead of ordering them by completion date when they have the same status. Its like its completely ignoring the 2nd parameter in the orderby.
