Sort is working on user defined comparator