added sort order of items in the queries