From: Sebastian Hungerecker Date: 2007-07-19T18:31:41+09:00 Subject: Re: confused, need help with a sorting program Daniel Lucraft wrote: > Sebastian Hungerecker wrote: > > The code doesn't create a new array. It just switches the items in the > > array > > around untill the array is sorted. Of course the items should only be > > Sorry to contradict you Sebastian: Yeah, seems I didn't read the code carefully enough. I only focussed on the part that I quoted. > the original array isn't sorted, but > cleared out by this code, since he's calling unsorted_array.pop at each > level. But before it pops, it actually does sort the unsorted array in the 0.upto part, doesn't it? -- Ist so, weil ist so Bleibt so, weil war so