<div dir="ltr"><div><div><div>Hello CSI Class:<br><br></div><div>Per the question posed in today&#39;s lecture regarding sorting a vector in descending order with the sort function.  Yes, this can be accomplished.  two ways are given below where v is a vector.<br><br></div>sort(v.rbegin(), v.rend());  //sorts in reverse order with reverse iterators (See section 18.1 of your book).<br><br></div>sort(v.begin(), v.end(), std::greater&lt;int&gt;()); // #include &lt;functional&gt; .  Learn more about this by taking the CS3 class.<br><br></div>Kind Regards,<br>Dianne<br></div>