The Core

Why We Are Here => Web Development => Topic started by: bill on February 13, 2013, 09:00:32 AM

Title: Dynamically sorting a list of addresses
Post by: bill on February 13, 2013, 09:00:32 AM
I have a big long HTML page of addresses that I can't break up. I'd like to add some dynamic sorting to make it easier for people to rearrange the list to more easily find what they're looking for. Right now everything is in a flat unordered list, but I'd be open to a table as well. I'd rather not make a database to accomplish sorting.  Could anyone recommend a JavaScript or PHP way to allow sorting without a page reload?
Title: Re: Dynamically sorting a list of addresses
Post by: BoL on February 13, 2013, 10:07:41 AM
http://www.datatables.net/ is pretty versatile but obviously requires the bloaty include of jquery.

i usually load the data in via a JS array and a 100K row table seems to work reasonably well in a browser without hanging and seems to be the speedbiest method. you could use an existing HTML table if it's important for bots to see the data though.
Title: Re: Dynamically sorting a list of addresses
Post by: Damian on February 15, 2013, 04:26:28 PM
If you want to work with a table + jquery,  http://tablesorter.com/docs/ seems ok as well.
For my needs anyway. I don't know if it will also work well on very large tables.

Title: Re: Dynamically sorting a list of addresses
Post by: rcjordan on February 15, 2013, 04:57:39 PM
Hmmm...   When you use tablesorter, how is the dynamic page indexed by google, sorted?