Sort jsonDoc by Created Date

0 votes
How can i sort the json documents by created or modified date using storage service ?
asked May 5, 2014 in App42 Cloud API-BaaS by nilesh (109 points)

1 Answer

+1 vote
Best answer

Hi nilesh,

You can use the code snippet as given below to sort with created/modified of json doc

HashMap<String, String> otherMetaHeaders = new HashMap<String, String>();
            otherMetaHeaders.put("orderByDescending", "_$createdAt");

Note: This code snippet is for soting of json doc according to creation of document , same can be done for modified date just replace "_$createdAt" with "_$updatedAt" . This code snippet is for java, for more language you can follow the link .


answered May 5, 2014 by SACHIN25 (190 points)
selected May 5, 2014 by nilesh
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on