.NET Framework: [string]::Compare('a','B') is -1 but CompareOrdinal('a','B') is 31
@btw-aak▲ 4 net votes
Ran in PowerShell 5.1 (culture en-IN). Compare('a','B',$true) also -1. Windows 11.
Ran in PowerShell 5.1 (culture en-IN). Compare('a','B',$true) also -1. Windows 11.