Sorting datatable column by day name
Posted
by Eli
on Stack Overflow
See other posts from Stack Overflow
or by Eli
Published on 2010-06-09T08:59:00Z
Indexed on
2010/06/09
9:02 UTC
Read the original article
Hit count: 237
sorting
|yui-datatable
Hi,
I have a datatable with day name column. I want to sort this column by day name e.g. if I have [Friday, Monday,Sunday] sorting should return [Monday ,Friday, Sunday] (ascending) and [Sunday,Friday, Monday] (descending).
I tried to use custom sorting but I wasn't able to represent my custom order.
Do you have ideas ?
Thanks
© Stack Overflow or respective owner