add sorting of quotes