disambiguate sorting in the event of a tie