Function comparePathsNatural

Compares path strings naturally. Comparing paths naturally requires path separators to be treated specially. Intended for usage in opCmp overloads.

int comparePathsNatural(T) (
  const T pathA,
  const T pathB
)
if (isSomeString!T);

Returns

-1 if a comes before b, 0 if a and b are equal, 1 if a comes after b