# File lib/rubyrep/session.rb, line 108 def sort_table_pairs(table_pairs) if configuration.options[:table_ordering] left_tables = table_pairs.map {|table_pair| table_pair[:left]} sorted_left_tables = TableSorter.new(self, left_tables).sort sorted_left_tables.map do |left_table| table_pairs.find do |table_pair| table_pair[:left] == left_table end end else table_pairs end end