Using AW.Formats.Number
Hi,
I have a AW column containing values 1/1, 1/2,...1/10, 2/1,2/2,...2/20 etc.
I tried using:
var obj = new AW.Formats.Number;
obj.setTextFormat("##/##");
obj.dataToValue1 = obj.dataToValue;
obj.dataToValue = function(data){
return data ? this.dataToValue1(data) : "";
}
But it displays "1/1, 1/2,....2/1, 2/2,....1/10, 2/20";
But I expected after 1/9, 1/10 would come, but after 1/9, 2/1 came.
Is there a solution with AW for handing this sorting
I really appreciate your help.
Thanks,
I have a AW column containing values 1/1, 1/2,...1/10, 2/1,2/2,...2/20 etc.
I tried using:
var obj = new AW.Formats.Number;
obj.setTextFormat("##/##");
obj.dataToValue1 = obj.dataToValue;
obj.dataToValue = function(data){
return data ? this.dataToValue1(data) : "";
}
But it displays "1/1, 1/2,....2/1, 2/2,....1/10, 2/20";
But I expected after 1/9, 1/10 would come, but after 1/9, 2/1 came.
Is there a solution with AW for handing this sorting
I really appreciate your help.
Thanks,
VJ
January 9,