Original Post
I'm trying to make it so that my chat boxes don't overlap, but I'm having difficulty coming up with a heuristic from scratch (I don't know any designed for this sort of thing). Given a specified number of rectangular boxes (all the same size), and rectangular boundary where all the boxes must be contained in. How would you go about 'sorting' them? Normally, I'd consider this a fun programming challenege and poke around till I get a nice solution, but I haven't the time in this stage of my game's development.