Á
Álvaro G. Vicario
I maintain a site that basically consists of a few hundred HTML tables
with sales data. I need to add custom sorting to such tables: clicking
on a table header should sort the table by that column.
I think client-side JavaScript is the most feasible solution. Can you
recommend me a pre-written script for this task? Requirements are:
* I don’t expect it to work in tables with groups (which involve title
rows, rowspans and subtotals) but it should at least consider a basic
layout: header, data and footer
* Data is formatted in Spanish and often has extra chars at the end
(e.g. "1.000,25 EUR") so I guess the script should allow custom compare
functions
* Performance must be acceptable in "large" tables (let's say, a dozen
columns along 500 rows)
Thank you in advance for any suggestion,
P.S. Yep, I'm already googling ;-)
with sales data. I need to add custom sorting to such tables: clicking
on a table header should sort the table by that column.
I think client-side JavaScript is the most feasible solution. Can you
recommend me a pre-written script for this task? Requirements are:
* I don’t expect it to work in tables with groups (which involve title
rows, rowspans and subtotals) but it should at least consider a basic
layout: header, data and footer
* Data is formatted in Spanish and often has extra chars at the end
(e.g. "1.000,25 EUR") so I guess the script should allow custom compare
functions
* Performance must be acceptable in "large" tables (let's say, a dozen
columns along 500 rows)
Thank you in advance for any suggestion,
P.S. Yep, I'm already googling ;-)