Hi Rakesh Jadhav
There is no direct functionality for doing this.
Please go through KB article below:
How to Sort a group of Documents using Groovy
There is an existing idea for this, which is under Product Team review Please provide a Sort shape
Retrieving data ...