I want to sort my array list based on one specific value in the the same arraylist. for example,
List<String>status=new ArrayList<String>();
status.add("COMPLETED");
status.add("COMPLETED");
status.add("TODO");
status.add("INPROGRESS");
status.add("COMPLETED");
Here i want to move elements which contains 'COMPLETED' to end of the arraylist..
for example, it should display like below.. just need to move the first two elements(0,1) into after the current last index(4).
TODO
INPROGRESS
COMPLETED
COMPLETED
COMPLETED