Sometimes you want to be able to sort things in the same fashion as the Finder. This method when used as the comparison function for the Arry.Sort( delegate) form of sorting will do that
Public Function CompareLikeFinder(firstString as string, secondString as String) as integer
#If targetMacOS
// //
// // typedef NS_CLOSED_ENUM(NSInteger, NSComparisonResult) {
// // NSOrderedAscending = -1L,
// // NSOrderedSame,
// // NSOrderedDescending
// // };
//
// // this gives us "Finder like" comparisons
// -[NSString localizedStandardCompare:].
… Read the rest