Map for data structures

I believe that when you run forEach on a heap you would expect to have the output sorted and the min-heap property just guarantees that the parent is smaller than the children, but doesn't guarantee any order between the children.