Making a div sort like a table
<p>I have data thats being laid out to the page in divs and the main div is set to auto scroll when the user mouses over the up/down buttons. Here a simple example of what i have:</p>

<p><a href="http://troycomptonworld.com/sorting" rel="nofollow">http://troycomptonworld.com/sorting</a></p>

<p>Now I need to add the ability to sort the divs ascending or descending if the user clicks on one of the column names (first name, salary etc). How can I do this with jQuery/javascript but keeping all of my other functionality (i.e the auto scrolling and the column headers being frozen)</p>
