Sorting numbers

It seems like sorting numbers doesnt work anymore (even in the examples that came with version 2)

is there a known work-around?


October 24,
to clarify, it takes the number as characters....so 31000, is less than 4000

any input is very much appreciated!
October 24,
The previous version was trying to guess what kind of data you have and it did not work very well. In 2.0 you have to specify data format explicitly:

var data = [
        ["xxx", "40000"],
        ["yyy",   "500"],
        ["zzz",    "10"]

    var obj = new AW.UI.Grid;


    var number = new AW.Formats.Number;
    obj.setCellFormat(number, 1);

Alex (ActiveWidgets)
October 24,

This topic is archived.

See also:

Back to support forum