xsl-list
[Top] [All Lists]

RE: [xsl] Sorting Two Dimensional Table

2007-10-15 07:16:57
Hey PL,

Try sending that again? It looks like your examples got nerfed when you
sent it.


~ Scott


-----Original Message-----
From: P L [mailto:happytchoum(_at_)hotmail(_dot_)com] 
Sent: Monday, October 15, 2007 9:10 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Sorting Two Dimensional Table 


Hi,
 
I'm desperately trying to sort a two dimension table.
 
I have keys and values. I want to be able to sort by keys and then by
value. This is not a problem so far. The problem comes when I try to
sort the keys that I want to be sorted as well.
 
Example: 

x       y       value

a       a       a 
a       b       a 
a       a       b 
a       b       b 
a       a       c 
b       b       a 
b       a       b 
b       b       b 
b       a       d 

which is presented as follow:


        
                a
                b
                halo_name
        
        
        
                
                        
                        
                        d
                
                
                        
                        
                        c
                
                
                        
                        
                        b
                
                
                        
                        
                        b
                
                
                        
                        
                        b
                
                
                        
                        
                        a
                
                
                        
                        
                        a
                
                
                        
                        
                        a
                
                
                        
                        
                        b
                
        

 
Th problem is that I don't know the keys beforhand neither how many of
them I have. So to show the title of my table, I use something like
that:
 










 
 
So that I know that my key titles are always sorted and then I put the
data in the same fashion
 


















 
 
So I'd like to sort my keys and then sort the data accordingly so that
visually the first column is sorted first and the second column
second...
 
Help !
 
Thank you very much.
 
PL

_________________________________________________________________
Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant!
http://www.emoticonesgratuites.ca/?icid=EMFRCA120
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--