in reply to ICQ list CGI

I don't quite get what your question's getting at... but as I see it you basically need to get your data into some sort of data structure. Are you getting this data directly from an ICQ datafile, or is this just arbitrarily provided data?

Put your data into some sort of internal structure--a hash or an array, most likely, or perpaps a hash of arrays--then use sort to sort it. Then loop through it and display it in a table, or investigate using CGI.pm to build your table.

If you give perhaps a bit more information re: your data, we might be able to give some recommendations as to structure.