on 5/21/02 10:27 PM, Dave Shelley at [EMAIL PROTECTED] wrote:

> Michael,
> 
> There may be other ways but you could do it with a <@sort> tag.
> 
> <@sort yourArray cols="1 desc, 2 desc">
> <@assign newArray @@yourArray[1,*]>  <- this will give you red 4
> <@sort yourArray cols="2 desc, 1 desc">
> <@addrows array=newArray value="@@yourArray[1,*]">  <-- add blue 5


Yeah, thanks, I thought I'd have to do something like that.

I'll need to run the distinct tag on the array to get the distinct values
and then run a for loop filtering out each subset of distinct rows, then the
sort/assign code.

Pretty much the manual way I was hoping to avoid but hey, at least I can get
it done. I don't mind doing it as long as there wasn't a *real* simple way
that I wouldn't think of until I did it the hard way ;-)

Thanks,

M./

Web Information Architect


__________________S E R V E R S M I T H S__________________

                           http://www.serversmiths.com/

                        Technology Infrastructure Provider
  
                   I N T E R N E T  P R E S E N C E  S O L U T I O N S

                    | EWordSmith | LightningSite | Enigma.Engine |

      ________M A R I N  C O U N T Y  C A L I F O R N I A________


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to