We're implementing a custom leaderboard and we need to sort the documents first by creation date and then by an integer number, and then extract the documents. This is needed in case there are two player with the same score and we'd like to show them by creation date. Will this code work?
HashMap<String, String> otherMetaHeaders = new HashMap<String, String>();
otherMetaHeaders.put("orderByAscending", "_$createdAt");
otherMetaHeaders.put("orderByDescending", "rating");
storageService.setOtherMetaHeaders(otherMetaHeaders);