title: How to assert list of string is in sorted order using testng in java?
body: <p>I am fetching response in sorted order from Get call using "http am.com/au/v/so?sort=name". It fetches the results in sorted  order. How can I assert the the name in the list is in alphabetical order.</p>
  
  <pre><code>List&lt;String&gt; list = new ArrayList&lt;String&gt;();
          for (Aml aml : value.getResults()) {
              name = aml.getName());
  </code></pre>