I would store this Comparator in a final static field. No need to create it every time.