adding sort compare