Hi @Mohit3 ,
If you want to sort your result based on multiple property then you can try to implement below:
map.put("1_orderby", "@jcr:content/rank");
map.put("orderby.sort", "desc"); // in case you want it descending
map.put("2_orderby", ""@jcr:content/jcr:lastModified"");
map.put("orderby.so...