Jun 4, 2007, 7:20 AM
Re: [miller] Creating alphabetic Sort
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.
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
(This post was edited by allan1962 on Jun 4, 2007, 7:24 AM)