map boxes sorted for smallest on top