Is there anyway to manipulate a table on the client side to sort a table?

I have a server program which generates a html table that is not sorted.
anyway for it to be sorted by the browser using fancy javascript?