Accurate sorting