Hi All,
I am using AEM 6.1 communities calendar component. I am listing all the events within the given date in my page. Now i need to sort the events in descending order, currently the events are getting displayed in ascending order. Below is the query which gives me my events list,
/calendar.social.json?filter=true&_charset_=utf-8×tamp=1490985000000&dates=2017-04-01_2020-05-09
In the query response i can see a value of "sortOrder":"REVERSED_ORDER", I need to change the value so that i can achieve the desired sorting. I am not sure where or how exactly to change this value. Please provide your suggestions for the same.
Query Response (Partial ) :
"configuration":{
"pageSize":100,
"sortOrder":"REVERSED_ORDER",
"sortFields":[
{
"key":"added",
"value":false
}
],
"sortByItemsList":[
"newest",
"added",
"latestActivityDate_dt"
],
"tagFilterVal":null,
"usingPrivilegedUsers":false,
"tagFilterLimit":-1,
"breadcrumbsEnabled":true,
"subscriptionsAllowed":false,
"analyticsTimeSelector":"total_tl",
"followingAllowed":false,
"moveAllowed":false,
"isTaggingAllowed":false,
"isRTEEnabled":true,
"isDeleteAllowed":true,
"isReplyAllowed":false,
"isFeaturingContentAllowed":false,
"isVotingAllowed":false,
"isFlaggingAllowed":false,
"isAttachmentAllowed":true,
"isCustomFlagReasonAllowed":false,
"isTranslateAllButtonAllowed":false,
"isCloseAllowed":false,
"isPinAllowed":false,
"isDenyAllowed":false,
"isEditAllowed":true
}
I am using communities version 1.8.500