With improvement in Dynamics 365 social pane, it is now possible to sort activities. Based on the field Like Due Date, Last updated, Actual end date and Actual Start
For Example:-
Here, sorting order can be set according to requirement. Go to Form Editor → Double click on Social Pane.
In Activities Tab Properties, select Activity Wall tab, as seen in the below screenshot.
Now you can sort social pane activities in Dynamics 365 based on Actual end, last updated, due date and other parameters as shown in the screenshot below.
Select the due date and click on OK button and then save the form and publish it. Now the activities will get sort in the order selected, ascending or descending.
Open the record and the results are as shown below
If you want the data in ascending order then click on the present in the record.