Using jQuery to sort table by a pseudo column
Using jQuery to sort table by a pseudo column In many cases, the web engine that generates data tables (html) is close-sourced and you cannot sort those tables. It is not because the engine does not have a mechanism to sort data. Its just that its behaviors does not satisfy your need. For example, the PowerSchool customization engine. In PowerSchool, I can output a table of lunch balance information of a student using this template syntax: ~[tlist;gldetail;studentid=~(curstudid);alternatecolor;sortcmd;date, > ,time, > ;] <td>~(date)</td> <td>~(time)</td> <td>~(neteffect)</td> <td>~(runninglunchtotalbalance.students)</td> <td colspan="3">~(transdescription)</td> Did you see the > (greater than) sign? It says that the table will sort by the date and time columns in ascending order. What I want is to make it sort date and time in descending order. So I tried to replace the ...