Use JS as much as possible. Here are some examples of when to use JS over jQ.
How to edit aspx files:
Here’s a better idea. Put it in a database or json or xml file and use sql statement to ORDER BY someField.