Tweaks to the sorting animations script