Hi, i'm trying to sort my storage with the key for my scores but it seems it's not working. I edit the scores on my json doc on the dashboard and run my app to check if the scores will sort but it didn't sort. Just to clarify my problem my goal is to sort the json docs by score. I'm using cocos2d-x
Here's my code:
StorageService *storageService = App42API::BuildStorageService();
Query *query = QueryBuilder::BuildQuery(APP42_KEY_USER_ID, userIds , APP42_OP_INLIST);
map<string,string>otherMetaHeaders; // Use orderByDescending for Descending or orderByAscending for Ascending as key
otherMetaHeaders["orderByDescending"] = “Score”;
storageService->setOtherMetaHeaders(otherMetaHeaders);
int max = 50;
int offSet = 0;
storageService->FindDocumentsByQueryWithPaging(“DBNAME”,”Debug_Scores”,query,max,offSet,app42callback(App42SyncUtils::onStorageRequestQuery, this));