You should be able to sort the TR elements of this table, though the input and button elements should keep working.
row 1 row 1
row 2
row 3 row 3