We are implementing a popup menu similar to the Windows Explorer's "Sort by" popup under "View" where the user can choose the items being sorted by "Name", "Date modified", etc and also change the sort direction as well.
I couldn't figure out how to achieve this. There isn't a Sort Command or a way I can sort the items by a specific column.