The obvious answer is to change the ASP.NET code to allow you to specify a sort order. Much easier solution than mucking in the JS code.
All the ASP.NET code has to do is change the SQL query's ORDER BY clause to match your request.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.