Hi folks,

I am currently working on a project to produce an analysis of the technologies being used on the web. For example, the number of sites using JavaScript, VBScript, CSS, Flash, Applets. I have developed the spider and collected lots of results. To display the results I have developed a website

http://www.webchalkboard.com/bot/index.shtml

I have just published this months results, and if you go to this page and select the month you want to view results for, you will notice that the results are split down into different domains.

Ok, my problem is how to sort these countries alphabetically. I know this sounds a very simple problem, and i've checked the Q&A section for details but found nothing. The domains are stored in a hash, with the key being 'COM' and the value being 'Commercial Sites' for example. So how can I put these countries in order, because when I loop through the hash, this is the order they come out in...?

I hope that makes sense and someone can point me in the right direction.

Many thanks, Tom


In reply to Sorting My Hash by Anonymous Monk

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.