How can I perform sort in a nested query in graphql?

I have created two collections Users and Stories in MongoDB. Here is the structure of the data how I stored it.

I made a relation in users collection between storyList and _id in stories collection. I am querying for the data in user collection like this.

It is giving me the results but I want to sort the storyList output by createdAt in ascending order.

Can anyone suggest to me any solution for this?

Thank you in advance.