how to sort an existing table in greasemonkey ?
- by user570512
i'm writing a greasemonkey user.js for a page with a table in it. (table is 100 rows by 18 columns.) now what i want to do is to make it sortable on column. and also have it run in both chrome and firefox.
all searches for answers sofar resulted in suggestions to use jquery/dojo or something alike.
can i be done without any external code? after all it's just a matter of replacing the row's in a different order, right? or is that a silly thing to say?
the thing is that i'm already using dojo for some query needs but since i want it to run in both firefox and chrome, i just copy paste the whole dojo thing in my script..
also, most of the solutions i found sofar seem to be more for use when building a table. not for altering an existing one.
any help is appreciated.