Re: Sorting Countries by Region

2007-11-19 Thread martyw
nothing, Alan wrote: > On Nov 16, 8:28 pm, martyw <[EMAIL PROTECTED]> wrote: >> i would create a class to capture country information, e.g. > > > What is the advantage of this: > >> def __cmp__(self, other): >> if self.name < other.name: >> return -1 >> elif s

Re: Sorting Countries by Region

2007-11-16 Thread Alan
On Nov 16, 8:28 pm, martyw <[EMAIL PROTECTED]> wrote: > > i would create a class to capture country information, e.g. What is the advantage of this: > def __cmp__(self, other): > if self.name < other.name: > return -1 > elif self.name > other.name: >

Re: Sorting Countries by Region

2007-11-16 Thread martyw
[EMAIL PROTECTED] wrote: > Hi all, > > I'm analyzing some data that has a lot of country data. What I need > to do is sort through this data and output it into an excel doc with > summary information. The countries, though, need to be sorted by > region, but the way I thought I could do it isn't