title: MAX and MIN on string array in c#
body: <p>I have started to learn Linq recently. I came across a few inbuild methods like Min() and Max().
  The working of these two methods is fine with int[]. But when it comes to string[], I am curious how it will work. I have tried some codes</p>
  <pre><code> string[] cars = { &quot;Volvo&quot;, &quot;BMW&quot;, &quot;Ford&quot;, &quot;Mazda&quot; };
              Console.WriteLine(cars.Max());
              Console.WriteLine(cars.Min());
  </code></pre>
  <p>The output was like this:</p>
  <p>**Volvo for Max()</p>
  <p>BMW for Min()**</p>
  <p>Can you please explain how it is working, is it taking the first letter in alphabetical order or is there any mechanism it is using like based on ASCII values etc?</p>