php - In HTML, how can I make a button that reverse sorts a massive -


In HTML, how can I create a button that is widely reversed? $ M = explosion ($ S) form_method = "post"

I believe that you only consider client-side, Not just HTML if this is the case, then use Array.sort () .

"Giant" is a completely relative word, but I have tested Array.Sort

Simplified, it looks like this is.

  & lt; Input Type = "Button" onclic = "Performsource ()" /> & Lt; Script & gt; Function PerformSort () {var arr = []; // arr.sort () Sort the objects 'ARR' with objects; // output resulted from DOM} & lt; / Script & gt;  

Comments