add sorting comparator