-
- 270 Posts
Evening,
I need to sort Ditto results by geography, so I'm filtering by a TV "City" and upon these results I need to apply a further filter to group them by type eg:
Results For Scotland
Type A :
Edinburgh
Glasgow
Type B :
Motherwell
Inverness
//
And I'm not quite sure how to achieve this! Ditto within Ditto? Working with EVO.
I've tried adding PHX to the Ditto template though obviously I get this (repeated headings and not grouped):
Type A :
Edinburgh
Type B :
Inverness
Type B :
Motherwell
Type A :
Glasgow
/ Any ideas?
Cheers.
-
- 928 Posts
Filtering, or sorting? If you're sorting, the &orderBy parameter can accept multiple entries, such as &orderBy=`type ASC,city ASC` to order by city within type.
It helps if you show the whole Ditto call you are using.
;) KP