I am using protractor for my E2E testcases. In my case, I am having an array and I want to sort it
Ex.
Arraylist.push(elements[1].getText());
Arraylist.push(elements[2].getText());
Arraylist.push(elements[0].getText());
element[n] is returning a text value which is getting inserted into the ArrayList.
Now I want to Sort this Array and test that the elements are in the correct order.
Do someone has idea, How can we do that?
expectations.