Use static inner class for sort comparator