Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-10-22 14:57:56
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Sorting and sub-sorting
Hello TXP friends,
I’m trying to sort a list of articles according to 2 criteria – first by custom_x desc
, which groups them under a specific year, and then by custom_y asc
within each year. I have the custom_x desc
sorting working but can’t get the second sorting to work. Is that at all feasible?
Thanks for any hint,
Ben
Offline
Re: Sorting and sub-sorting
<txp:article_custom sort="custom_x desc, custom_y asc" />
Offline
#3 2010-10-22 15:15:33
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Re: Sorting and sub-sorting
Thanks Dale,
That’s what I first tried and it wasn’t working… until I realized some articles had no values for custom_y
D’oh! :-P
So…. fixed! Sorry for bothering you people… :-/
Offline
Pages: 1