implemented comparator between two lists; occurs an error when trying to compare two different-typed values
implemented comparator between two lists; occurs an error when trying to compare two different-typed values