non-working intermediate stage, subviews are not yet sorted by weights
sorting is implemented, but weights are not scaled yet