4352cc231e
for...in loops do not guarantee that the indexes iterate in order. As a consequence, buttons may appear in an undesired order.