title: How to use std::sort to sort an array in C++
body: <p>How to use standard template library <code>std::sort()</code> to sort an array declared as 
  <code>int v[2000]</code>;</p>
  
  <p>Does C++ provide some function that can get the begin and end index of an array?</p>