default List<RedUINode> getZOrderedChildren(Predicate<RedUINode> filter, boolean reversed) {
        return getOurChildren().stream().filter(filter)
                .sorted(Comparator.comparingDouble(n -> n.getZPosition() * (reversed ? 1 : -1)))
                .collect(Collectors.toList());
    }
Returns a filtered children list sorted by Z position
<p>
Nodes with equal Z positions will be ordered based on their original order

@param filter   Used to exclude certian children
@param reversed If true, sort in ascending z order
@return Children list
core/src/main/java/mrtjp/projectred/redui/RedUINode.java