i have the following html structure:
<div id='main'>
<div id='612'>
</div>
...
<div id='1'>
</div>
</div>
As you can see i have several div going in a decreasing order and i wuold like to make a button that activate a jQuery script that can sort those div in both ways (decreasing and increasing). I already created the button and linked it to the script but i can't find a way to sort the divs. Is possible?
Edit: Posted the entire code on pastebin: https://pastebin.com/DZWdNMZk
Edit: Posted the entire code on Github if it any help: https://github.com/mattiac02/divs