I have an array of strings which I need to order from Z-A:
Dim FolderFiles() As String
FolderFiles = ("ABC","ZYX","MNO","EFG")
I need to sort it in a way that it would appear as
Dim FolderFilesOrder() As String
'Sort here
FolderFilesOrdered = ("ZYX","MNO", "EFG","ABC")
Comparing only the first 3 letters is fine if there are restrictions.
Here’s one way to sort the array.