On Jun 23, 2011, at 7:14 AM, Norbert Hartl wrote: > > Am 22.06.2011 um 05:11 schrieb Sean P. DeNigris: > >> I did the simplest thing I could think of and overrode >> XMLPageElement>>handleEndTag >> ^ self nodes sort: [ :a :b | a < b ]. >> >> It worked but feels like a hack. Anyone have anything better? >> > Why do need to sort while the parser is parsing? Can't you sort just > afterwards? I think this is the cleanest approach.
Yeah, my guess is that sorting a collection while it's being iterated upon is bad news. Pat
