I am trying to implement a sort feature just like AEM Assets as show below in Pathfield Dialog.
.
Whenever an author selects a path by opening the pathfield dialog, the author should be shown with a sort By option as shown above so that the author can sort the items on the current path which he is currently on. If he is traversing a path /content/we-retail/us/en and then chooses to sort by selecting any field then the only immediate child pages should be sorted by the selected option. This is view only and not expected to sort nodes in repository. Any pointers/references would be helpful. Thank you.