Sort Arraylist Java Without Using Sort Method C