@Override
    public int compare(Object o1, Object o2) {
         //        Book obj=(Book) o1;
          //        Book obj=(Book) o2;
    if(o1 instanceof Book && o2 instanceof Book)  
    return((Book) o1).getBook_ID()-((Book) o2).getBook_ID();
        return 0;
    }