How to make the script reverse this?

Here is the script
When you press the button this script sorts the blocks according to the numbers from smallest to largest .
How to make so that the script sorted from largest to smallest?
June 7th 19 at 14:30
1 answer
June 7th 19 at 14:32
Solution
,

return parseInt(a.dataAttr) < parseInt(b.dataAttr) ? 1 : -1;
thank you very much !!! - Federico20 commented on June 7th 19 at 14:35

Find more questions by tags JavaScriptHTMLCSSjQueryAJAX