presto-main/src/main/java/io/prestosql/sql/planner/optimizations/ExpressionEquivalence.java/ListComparator/compare
class ListComparator:        @Override
        public int compare(List<T> left, List<T> right)
        {
            int compareLength = min(left.size(), right.size());
            for (int i = 0; i < compareLength; i++) {
                int result = elementComparator.compare(left.get(i), right.get(i));
                if (result != 0) {
                    return result;
                }
            }
            return Integer.compare(left.size(), right.size());
        }