You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Joseph <pj...@gmail.com> on 2009/04/27 12:23:59 UTC

repeater with pagination--reverse sort?

Hi There,

Does anyone know if the new repeater widget with pagination support a 
reverse sort?

One of my columns ranks Priority, with 1 being the highest and 4 the 
lowest.  Sorting brings all the items of status 4 to the top whereas I 
would like items with status 1 to come to the top on the sort.

Thx.!
Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: repeater with pagination--reverse sort?

Posted by Paul Joseph <pj...@gmail.com>.
Hey, thanks, this is great!
Paul

Anish M wrote:
> Hi Paul,
> There is a patch to do this for you
> http://issues.apache.org/jira/browse/COCOON-2032
> And this is how your definition would look:
> <fd:repeater-action id="sortByPriorityAscending" command="sort-by"
> repeater="rep" field="Priority" asc="true" />
> <fd:repeater-action id="sortByPriorityDescending" command="sort-by"
> repeater="rep" field="Priority" asc="false" />
>
> Regards,
> Anish
>
> Paul Joseph-3 wrote:
>   
>> Hi There,
>>
>> Does anyone know if the new repeater widget with pagination support a 
>> reverse sort?
>>
>> One of my columns ranks Priority, with 1 being the highest and 4 the 
>> lowest.  Sorting brings all the items of status 4 to the top whereas I 
>> would like items with status 1 to come to the top on the sort.
>>
>> Thx.!
>> Paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
>>     
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: repeater with pagination--reverse sort?

Posted by Anish M <an...@yahoo.com>.
Hi Paul,
There is a patch to do this for you
http://issues.apache.org/jira/browse/COCOON-2032
And this is how your definition would look:
<fd:repeater-action id="sortByPriorityAscending" command="sort-by"
repeater="rep" field="Priority" asc="true" />
<fd:repeater-action id="sortByPriorityDescending" command="sort-by"
repeater="rep" field="Priority" asc="false" />

Regards,
Anish

Paul Joseph-3 wrote:
> 
> Hi There,
> 
> Does anyone know if the new repeater widget with pagination support a 
> reverse sort?
> 
> One of my columns ranks Priority, with 1 being the highest and 4 the 
> lowest.  Sorting brings all the items of status 4 to the top whereas I 
> would like items with status 1 to come to the top on the sort.
> 
> Thx.!
> Paul
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/repeater-with-pagination--reverse-sort--tp23253513p23575251.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org