If you want to change the order of group of divs with same class name (eg. given below):
First Heading
1
Second Heading
2
Third Heading
3
You can reorder it by the following jQuery code:
$('.wrapper .number').each(function () {
$(this).insertBefore($(this).prev('.text'));
});
https://jsfiddle.net/farhanmae/9th3drvd/