Re: [Tutor] methods of sorting

2014-04-23 Thread Patti Scott
This makes sense.  Thanks.  No question on the specific code, I was just thinking I should show I'd done any experimenting with the methods Hi Patti, My answers below, interleaved between your questions. On Tue, Apr 22, 2014 at 04:18:38PM -0700, Patti Scott wrote: > I'm practicing with li

Re: [Tutor] methods of sorting

2014-04-22 Thread Steven D'Aprano
Hi Patti, My answers below, interleaved between your questions. On Tue, Apr 22, 2014 at 04:18:38PM -0700, Patti Scott wrote: > I'm practicing with lists.  I was looking for documentation on sorting > with cmp() because it isn't immediately clear to me how comparing > items two at a time can so

Re: [Tutor] methods of sorting

2014-04-22 Thread Danny Yoo
On Tue, Apr 22, 2014 at 4:18 PM, Patti Scott wrote: > I'm practicing with lists. I was looking for documentation on sorting with > cmp() because it isn't immediately clear to me how comparing items two at a > time can sort the entire list. As you note, comparison itself doesn't sort a list. Co