(:

I never meant to imlpy that you posted the GRT version for speed. You see, before starting this thread, i did a search on sorting URLs by hostnames. That led to GRT, GRT/ST, the sort paper, and eventually the benchmark results i posted. I benchmarked your version too just to see how it would compare to my two previous solutions. Just plain curiosity.

About order of host name components... i wanted to keep URLs sorted based on the 2d part of domain name in (com|net|org|edu), thus the "slightly peculiar" order. But then, i hadn't thought about the country code. Needless to say that that shows.

So far i came upon only one or two such URLs in my netscape history. If i need to keep in the desired order, i have to work on the sorting of country codes too... back to drawing board...

(Thanks by the way.)


In reply to Re: Re: Re: Re: Sorting URLs on domain/host: sortkeys generation by parv
in thread Sorting URLs on domain/host: sortkeys generation by parv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.