presto-main/src/main/java/io/prestosql/sql/analyzer/Analysis.java/Analysis/isOrderByRedundant
class Analysis:    public boolean isOrderByRedundant(OrderBy orderBy)
    {
        return redundantOrderBy.contains(NodeRef.of(orderBy));
    }