Sorting help!

Stefan Schmiedl s at xss.de
Thu Nov 15 15:04:59 UTC 2001


goran.hultgren at bluefish.se (2001-11-15 14:48):

> Hi!
> 
> I am posting this on behalf of Christopher K Roach <ceeckr at cee.hw.ac.uk>
> (or chrisroach at btinternet.com) (Ha! No <CSOTD> for this!):
> ------------------------------------
> 
> It would be useful if anyone could help me with a sorting algorithm
> that I am stuck on.
> 
> I am looking for efficient algorithm for processing research purposes
> 
> My input file will be of the format
> 
> <title>,<name>,<reference>,<number>
> 
> Sort would have to do in ascending order of
> <title>,<name>,<reference>,<number>

as you do not need to switch columns, you
could just read the file line-by-line into
a large array of strings and then use the
standard sort method for arrays.

Nah, it can't be that simple. What am I overlooking here?

s.
-- 
Stefan Schmiedl
EDV-Beratung, Programmierung, Schulung
Loreleystr. 5, 94315 Straubing, Germany
Tel. (0 94 21) 74 01 06
Public Key: http://xss.de/stefan.public

shhhh ... I can't hear my code!




More information about the Squeak-dev mailing list