CMS-2860 Fix sorting of content query result

Created query-specific json return that will keep the order given from ContentQueryResult.