I want to query the components and sort the result by the index which like in CRXDE.
But I got the results sorted by the "lastModified" property.
In source code, I didn't put the "orderby" property in the query map.
queryMap.put("path", pagePath); queryMap.put("type", "cq:Page"); queryMap.put("1_property", "jcr:content/cq:template"); queryMap.put("1_property.1_value", OfferUtil.OFFERS26_TEMPLATE); queryMap.put("1_property.2_value", OfferUtil.OFFERS8_TEMPLATE); queryMap.put("2_property", "jcr:content/redirectTarget"); queryMap.put("2_property.operation", JcrPropertyPredicateEvaluator.OP_NOT); queryMap.put("orderby","whichProperty"); // set to get all Offers. queryMap.put("p.offset", "0"); queryMap.put("p.limit", "0");
And I want to know which property can be filled in the map that the result can sorted by the index.
like "index", "order" etc.