CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [miller] Creating alphabetic Sort: Edit Log



allan1962
Novice

Jun 4, 2007, 7:20 AM


Views: 5105
Re: [miller] Creating alphabetic Sort


In Reply To
Sorting is ultimately what he wants - No, I've got the sorting done, as that is even what the example website does.

The fact that they are displayed grouped by first letter is a totally different issue. Once the elements are sorted, grouping by first letter becomes trivial. Not that it's hard to begin with. Even without sorting, it would simply be a matter of using substr, and inputting the data into a hash where the keys were the first letter. QED.

- M



However, this is the part I am having the trouble with, grouping by first letter, the sort part has beendone with the existing code that I have. See http://www.peibd.com/cgi-bin/testdata/data.cgi for the sorted list.

I need to display this as seen on http://www.peibd.com/categories.html so what iI am lacking is the skill to code using substr, and inputting the data into a hash where the keys were the first letter.

Hope this explains it a little more cleary

Thanks

Allan


(This post was edited by allan1962 on Jun 4, 2007, 7:24 AM)


Edit Log:
Post edited by allan1962 (Novice) on Jun 4, 2007, 7:24 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives