better ordering of ties