title: Sorting a string lexicographically in c++
body: <p>i am new in programming. i just learned strings in c++.</p>
  <p>I have N strings and I want to sort them in lexicographical order.(Dictionary order)</p>
  <p>How, can i do that as N is quite Big <code>1 &lt;= N &lt;= 1e5</code> and size of each string is <code>1 &lt;= |s| &lt;= 1000</code>.</p>
  <p>Also the string is only made of small English alphabets.</p>
  <p>I have figured out one method which is sorting them but test cases are tight and giving TLE.</p>
  <p>Is there a better Approach for this problem. Please help.</p>