I'm writing a sorting algorithm in C#. The algorithm is written in one project (call it the "Sort project"). I've built another project (call it the "Scratch project") to use as a baseline to compare the results of CompareTo(). I get different results with the CompareTo() method in one project than I get in the other project. For example, "'1".CompareTo("0 ") gives a 1 in the Sort project but a -1 in the Scratch project. "-".CompareTo(" ") gives a -1 in the Sort project but a 1 in the Scratch project. "-".CompareTo("0") actually returns a 0 in the Sort project but a -1 in the Scratch project. The list goes on. However, for comparisons of completely numeric (1-9) and alphabetical (a-z,A-Z) characters seems to give the same results in both projects. I'm not aware of any culture specific settings, languages, or anything unusual in use in either of my projects. I'll include some screenshots but I can include more. I'm using Visual Studio Community 2022 (17.3.3) with .NET 4.8.04161.