Java Arraylist Copy To Another Arraylist Sort Function In Python