Blitz (132/213)

From:Francis G. Loch
Date:24 May 2000 at 13:09:43
Subject:Re: Bug in Lof?

Hi Gareth,

--- Gareth Griffiths <gazchap@btinternet.com> wrote: >

> > What do you mean by a secondary sort? Are you
> talking
> > about having two array lists (like a table), e.g.:
>
> I mean like, say you have four songs by the same
> artist, e.g.
>
> Chemical Brothers: Hey Boy Hey Girl
> Chemical Brothers: Under The Influence
> Chemical Brothers: Music - Response
> Chemical Brothers: Out Of Control
>
> Now that I have the artists in alpha. order, I would
> like the titles in
> alpha. order too, for each artist.

Sorry for not replying earlier, but I've just had my
appendix removed and I only got back from the hospital
yesterday.

What you could do it is have an array (or two, if you
want) and check the artist's name (after the inital
sort) and make a note of the range that that
particular artist comes at in the array. E.g.

Array position Array contents
============== ===============
1 Blur
2 Chemical Bros
3 Chemical Bros
4 Duran Duran

So you would have a start position of 2 and an end
position of 3. Next you would do your bubble sort for
the song title array, but only in the range of 2 to 3
instead of everything in the array.

I hope that helps

Kind regards,

Francis.

=====
e-mail:- fgloch@yahoo.com
web-site:- http://www.geocities.com/fgloch
Member of GAUG
Glasgow Amiga Users Group
*-Join our mailing list-*
gaug-subscribe@egroups.com

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie