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.
List<String> list = new ArrayList<String>();
for (Aml aml : value.getResults()) {
name = aml.getName());