new ordered quote function