How to configure CoreService UCCollation to match NSString localizedStandardCompare?

NSString localizedStandardCompare can be used to sort strings similar to how the Finder sorts strings. However, for large sets of strings, the performance is quite poor.

Core Service offers collation support through the use of UCCreateCollator, which takes a mask of UCCollateOptions.

Is there a set of options that can be used such that a sorted set of strings produced using UCCompareCollationKeys produces the exact same ordering as localizedStandardCompare?

Bonus Round:

When using UCCompareCollationKeys, the ordering of the two keys is returned as an SInt32. What is the correct way to convert that ordering into a boolean for use in algorithms like std::sort or Swift's sort which require their implementations adhere to strict weak ordering?

Code Block
SInt32 compareOrder = 0;
OSStatus statusResult = 0;
statusResult = UCCompareCollationKeys(
lhsKeys.data(),
   lhsKeys.size(),
   rhsKeys.data(),
   rhsKeys.size(),
   NULL,
   &compareOrder);
// How should compareOrder be converted to a Bool that satisfies strict weak ordering?

How to configure CoreService UCCollation to match NSString localizedStandardCompare?
 
 
Q