Home  >  Article  >  Web Front-end  >  JavaScript Table Sorting 2.0 (Updated)_javascript tips

JavaScript Table Sorting 2.0 (Updated)_javascript tips

WBOY
WBOYOriginal
2016-05-16 18:53:05894browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn