I have BookData, which has int id and String name
Coding is
bookData book = new bookData(1,"Ethan");
bookData book = new bookData(3,"Queen");
bookData book = new bookData(2,"BOB")
ArrayList al = new ArrayList();
al.add(book);
how can i use merge sort to sort id in this ArrayList?
I really need to get this done without using Collections class and Arrays Class