Welcome Guest, Not a member yet? Register   Sign In
Number Sorting

(This post was last modified: 04-06-2018, 12:09 AM by SomeGuy.)

Sounds like the appropriate solution is to:

1. Write a method for each sort (so it can be called on PHP page build AND via JS XHR [code duplication = bad]);
2. Build the form as you have to refresh the page for each sort option;
3. *Enhance* the page using JavaScript that, when available, calls for the sorted data via XHR when requested.

This assumes you care about scale, maybe your data store isn't/won't be that large.

Messages In This Thread
Number Sorting - by wolfgang1983 - 02-11-2018, 07:45 PM
RE: Number Sorting - by InsiteFX - 02-12-2018, 04:22 AM
RE: Number Sorting - by SomeGuy - 04-06-2018, 12:08 AM
RE: Number Sorting - by sitesazan2321 - 04-06-2018, 11:49 PM

Theme © iAndrew 2016 - Forum software by © MyBB