Facing problem in sorting a datagrid column.
Problem in sorting a particular column which displays date values eg(01-Apr-2005,02-Apr-2006,01-Jan-2005 etc)
not bale to sort the column based on the date.
i have used the function to sort the date column by date but it is not working.
Here it is sorted based on the character Srting eg :
But i need to sorted based on date i.e
any one could help on this it will be use full for me
You might have to do a DataGrid Click Handler and then create your own Sort function. From there, you could create a hidden column that displays the data using the valueOf() , then you can use the custom sort to sort the data based on a NUMERIC sort.
|CASEINSENSITIVE : uint = 1|
[static] Specifies case-insensitive sorting for the Array class sorting methods.
|DESCENDING : uint = 2|
[static] Specifies descending sorting for the Array class sorting methods.
|NUMERIC : uint = 16|
[static] Specifies numeric (instead of character-string) sorting for the Array class sorting methods.
|RETURNINDEXEDARRAY : uint = 8|
[static] Specifies that a sort returns an array that consists of array indices.
|UNIQUESORT : uint = 4|
[static] Specifies the unique sorting requirement for the Array class sorting methods.