help on table sorting
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhenyu_goh
Posted On:   Tuesday, December 28, 2004 02:23 AM

hi all.. im doing a javascript on sorting the table data by clicking the table header. I can only sort by ascending / decending order. However, i want one of the column to be sort by words.

Meaning i have 3 columns: name | nric | status

The datas for status are married, single, divorce. What i want is when i click on the status, ascending will be divorce, single followed by married. decending will be single, married follow by divorce.

As for other column as usual, when i click on the header, it follows alphabetical order

Anyone can help me with this? any help or comment is welcome. thx in advance

About | Sitemap | Contact