JSFiddle - React, Tailwind, and code Playground

by André Albson

HTML

<ul id="cat">
    <li id="11">Para Conhecimento</li>
    <li id="1">Participante</li>
    <li id="10">Líder</li>
    
</ul>

JavaScript

$("#cat li").sort(function (a, b) {
    return parseInt(b.id) == 10;
}).each(function(){
    var elem = $(this);
    elem.remove();
    $(elem).appendTo("#cat");
})