symphonycms icon indicating copy to clipboard operation
symphonycms copied to clipboard

Sort by multiple columns

Open jensscherbl opened this issue 10 years ago • 3 comments

I guess I'm just overlooking something, as this is pretty much standard functionality, but how can I order data source results by multiple columns? Like ORDER BY date ASC, title ASC?

jensscherbl avatar Sep 27 '15 13:09 jensscherbl

It's not supported by Symphony.

brendo avatar Sep 27 '15 23:09 brendo

@brendo Any way to hack it in? Or is this a more complex issue? Is there a common (non-xsl) workaround that's usable with pagination?

jensscherbl avatar Sep 28 '15 06:09 jensscherbl

@jensscherbl I would also be interested in this feature.

But it would also require touching the EntryManager class: https://github.com/symphonycms/symphony-2/blob/master/symphony/lib/toolkit/data-sources/class.datasource.section.php#L511-L522

nitriques avatar Sep 28 '15 16:09 nitriques