How can I reverse an order with jquery?
I tried with the suggestion like this but it won\'t work!
$($(\".block-item\").get().reverse()).each(function() {
Your code is working. Just choose jQuery framework on the left hand.
$($(".block-item").get().reverse()).each(function() { $(this).appendTo($(this).parent()); });