Sort by domain name?

gene tani gene.tani at
Mon Oct 2 17:45:31 CEST 2006

Paul Rubin wrote:
> "js " <ebgssth at> writes:
> > Here, domain name doesn't contain subdomain,
> > or should I say, domain's part of 'www', mail, news and en should be
> > excluded.
> It's a little more complicated, you have to treat about
> the same way as .com, and similarly for some other countries
> but not all.  For example, versus
> or
> You end up needing a table or special code to say
> how to treat various countries.

Plus, how do you order "https:", "ftp", URLs with "www.", "www2." ,
named anchors etc?

Gentle reminder: is this homework?  And you can expect better responses
if you show youve bootstrapped yourself on the problem to some extent.

More information about the Python-list mailing list