Hey Vivek,
The list view contains a function of sorting in the header,
From there you can decide the order for sort, for an attribute,
https://docs.mendix.com/appstore/widgets/list-view-controls/
or you can use a microflow, then retrieve the data from association and then using list operation, you can sort your data also,
Both the ways are possible,
Hope it helps!