Added comparators for sorting