I have 3 divs:
<div id='pai'>
<div class='produtos' contagem='2'></div>
<div class='produtos' contagem='1'></div>
<div class='produtos' contagem='3'></div>
</div>
I would like to swap them, so that the divs with the count attribute with the highest number were first (in descending order).
How do I get this in such a way that the count numbers I do not know, that is, they may not be the ones I set as an example?