IComparer implementation edited