I want to sort the W2ui grid date column in 'dd/mm/yyy' but when multiple records are in grid the date not sorted properly
i am using w2ui['grid'].sort('dd/mm/yyyy',event)
Sorry, but your code w2ui['grid'].sort('dd/mm/yyyy',event)
does not make any sense.
Assuming your grid has a column called date
that you want to sort descending, you'd have to call: w2ui.grid.sort('date', 'desc')
(Note that w2ui['grid']
and w2ui.grid
is the same, you can pick whichever syntax you prefer).
Please see the docs for grid.sort: http://w2ui.com/web/docs/w2grid.sort
If this does not help you should provide a basic jsfiddle, with your grid columns and a few sample records.