Update sorted_relations.rb