For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2005 > alphabetically down columns in a table









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author alphabetically down columns in a table
Abdul-Wahid Paterson

2005-01-10, 4:01 pm

Hi,

I have some data that I want to display in columns (2 or more) sorted
alphabetically. However, instead of going across the columns
alphabetically I want it to go down the columns. Is there any way of
doing this easily in smarty given an array of data.

E.g...formatted data would be like


aa af ak
ab ag al
ac ah am
ad ai an
ae aj

rather than like


aa ab ac
ad ae af
ag ah ai
aj ak l
am an

Thanks,

Abdul-Wahid
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com