:: Forum >>

Set Default sorting in DESC order in some columns, other remain ASC order

Is there any way to set default sorting order in some columns as DESCENDING, while others in ASCENDING order?
Henry Ng
Saturday, September 11, 2004
Faced the same problem, and it looks like this is not configurable but hard-coded into obj.sort function:

if (direction && direction != "ascending" ) {
direction = "descending";
}
else {
direction = "ascending";
}


Of course you can always specify your own sorting function for a column, but that's kind of clumsy.

Alex: I think it would make sense to introduce a property that would regulate this in upcoming release. For some types of data in certain environments (for instance, dates in news collection systems etc etc) DESC is much more natural and intuitive default.

Cheers.
Sergei
Thursday, April 14, 2005

This topic is archived.


Back to support forum

Forum search