View Single Post
Old 09-25-2008, 12:23 PM   PM User | #2
Robin John
New to the CF scene

 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Robin John is an unknown quantity at this point
Issue fixed

hi friends, this issue is fixed,

You just have to do a sort="external" in the table tag.(After doing this your display table tag wont sort your list.)

then you have to...

1) write a comparator class.
2) write the multilevel compare logic in comparator.

3) sort your list before setting in action class, using collections.sort or arrays.sort invoking the previous comparator you made.

EXAMPLE - Arrays.sort(customArray, new YourComparator(Column_Name, Sort_Order));

and voila ! you got sorting done.
Robin John is offline   Reply With Quote