Sorting matches table.