Move tr by index to a new position
问题 I have a table that has a fixed layout of rows. Each row has unique identifier. When the data is returned from the database it has a different order for the rows in that table. The returned data has the same index that exists in the fixed layout so I can find the matching row in the fixed table. I need to move the rows in the fixed table layout to match the order of rows in the data. Table Layout: <table> <tr id="a1"><td>Some Value1</td></tr> <tr id="a2"><td>Some Value2</td></tr> <tr id="a3">