Sorting in pivot table

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Sorting in pivot table

Postby wolfgang » Fri Jan 06, 2012 6:16 am

I have a pivot table with a single column in rowHeaderTable. It use a list of Strings in model, something like this:
[7.500 km, 120.000 km, 15.000 km, 5.000 km]

In pivot table this list data shown ordered by String (of course :wink: ):
120.000 km
15.000 km
5.000 km
7.500 km

But I want to show this list in pivot table as natural order like:
5.000 km
7.500 km
15.000 km
120.000 km

What have I to do, to show list data as natural order in pivot table?
wolfgang
 
Posts: 25
Joined: Fri Dec 09, 2011 2:26 am

Re: Sorting in pivot table

Postby JIDE Support » Fri Jan 06, 2012 8:20 am

Please register a Comparator with ObjectComparatorManager for the String.class using a customized ComparatorContext. Please configure the PivotField to let its comparator context returns the customized ComparatorContext.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Sorting in pivot table

Postby wolfgang » Mon Jan 09, 2012 7:52 am

Thanks :D
wolfgang
 
Posts: 25
Joined: Fri Dec 09, 2011 2:26 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 8 guests

cron