Modify total_ordering