title: How to sort double array?
body: <p>I got an double array declared was followed:</p>
  
  <pre><code>double myArray[4] = {0.0, 5.0, 2.1, 99.1};
  </code></pre>
  
  <p>But I got no idea how I can sort this array like (min - max) or the other direction.
  All that I found during my research was code, how to sort vectors.</p>
  
  <blockquote>
    <p>So my question. How to apply a sort routine on this array the right way?</p>
  </blockquote>
  
  <pre><code>double myArray[4] = {0.0, 5.0, 2.1, 99.1};
  
  std::sort(myArray.begin(), myArray.end(), [](const double&amp; a, const double&amp; b) {
                  return a &gt; b;
              }); // not working this way
  </code></pre>