Perfectly smooth sorting.

Make the sorting smooth. Unfortunately this means we can't use CSS
animations (slower) but they are now really smooth.