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

(04-06-2018, 12:08 AM)SomeGuy Wrote: 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.

Hi,
First thank you for the algorithm. Can you give an example?
I'm new to programming and I want to do a lotyk. Do you know the website you introduce me to practice online?
English only
Reply


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