private boolean isOrdered(Node n) {
		if (n.prev != null) {
			if (comparator.compare(n.prev.val, n.val) > 0) {
				return false;
			}
		}
		if (n.next != null) {
			if (comparator.compare(n.next.val, n.val) < 0) {
				return false;
			}
		}
		return true;
	}
Check if a node is correctly positioned relative to its immediate neighbors

@param n the node
@return true if the node need not be moved
Ghidra/Framework/Generic/src/main/java/ghidra/generic/util/datastruct/TreeValueSortedMap.java