Home > Article > Web Front-end > JavaScript Table Sorting 2.0 (Updated)_javascript tips
I’m still so busy lately, so I’ll take advantage of May Day to update the program.
This version mainly adds and improves the following things:
1, use localeCompare to compare strings;
2, multiple sort objects can be used in one sort (used for sorting when the values are equal) ;
3, correct some discovered problems;
4, improve the program structure, personally think it is more flexible and convenient;
5, add bool type comparison;
6, add attribute/property Content;
7, fix the radio/checkbox status recovery bug of ie6/7;
8, add a custom value function.