Speed up atom comparison by ordering things based on their hash codes.