I have a problem with sorting and filtering html table.
I use jQuery propdown Table Filter plugin and it works perfectly well for me, but,
For now it looks like this:
But problem is i also need sort my table by values (AZ/ZA)
, and I'm not strong via JQuery to re-write this plugin. It must look like this (add sorting options to select):
Can you give me direction, where I can look? I find a lot of jQuery plugins, but none did what I need.
have you perhaps thought of using JQuery Datatables?? They are really easy to use and you can sort your columns and filter the data (search box performs filter on all columns based on input text) by default.
For the Above sorting you can check ascii value of the character and then sort the character according to it.
For the NON English character, find the ascii value and then sort it.
For eg
"ABCDEF".charCodeAt(0) // return 65
Same way for
"CÃNT".charCodeAt(1) // return 195
May this will help you
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.