I have this code:
<table>
<tr id="a"><td>A</td></tr>
<tr id="d"><td>D</td></tr>
<tr id="e"><td>E</td></tr>
<tr id="b"><td>B</td></tr>
<tr id="c"><td>C</td></tr>
</table>
How with jQuery can I put the rows in order?
Update: I need to use a move function not a sort function, since the real id's are not letters. Sorry for the confusion. I want to do something like this:
$("#a").after(rows_b_and_c)
But I don't know how to get the rows.