Sorting out quotes