I got this table and I need to sort columns by an attribute (kind_id
) but not simply ascendant or descendant, I got an array of ids that the sorting should follow.
This is an example of column:
<tr id='music' class='unchecked' selezionato='no' kind_id='203'>
<td id='music' width='179px'>
<div id='nome_music'>
Rock
</div>
</td>
</tr>
And this is an example of the array
["203", "10", "12", "15", "25", "46", "56", "61", "102", "104", "114", "116", "121", "138", "142", "145", "187", "189", "190", "204", "205", "208", "214", "220"]
How could I do this?