Re: Sorting by sequence member`

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 11 Oct 2004, at 18:39, Tony Steward wrote:

> 
> 
> Gday Kat,
> 1stly I included your lib in my program.
> Then after building the data to put into a EUGrid I called your
> routine as follows:
> 
> PersonnelGridData = sorttok(PersonnelGridData,{3,4},',')

Why did you sort by 3,4, when the first example of the data had no 4th field, 
and the 2nd example had all 4th fields empty? The docs say: "If you supply 
a sort pattern that is longer than the number of tokens on a line in string, 
sorttok() will return "","

Kat

> I'm not saying your lib doesn't work, I just couldn't get it to work &
> to be honest I didn't try too hard.
> 
> Anyway I hope this helps. If I can be of any further assitance please
> let me know.
> 
> Regards
> Tony
> 
> 
> On Sun, 10 Oct 2004 20:44:43 -0500, Kat <gertie at visionsix.com> wrote:
> > 
> > 
> > On 10 Oct 2004, at 18:15, Kat wrote:
> > 
> > >
> > > On 11 Oct 2004, at 8:01, Tony Steward wrote:
> > >
> > > >
> > > > Thanks Kat, I didn't want to sort the atoms.
> > >
> > > But you gave the second example (including atoms) as what wasn't working,
> > > and i'd like to know what you did. I did say the first example you gave
> > > (which did not include atoms) would work, so what happened? If there is a
> > > totally unexplained random fault with strtok.e, i'll take it offline.
> > 
> > From: http://tiggrbox.info/program/strtok-v2-1.html
> >                                    Strtok
> >    Someone has said sorttok() doesn't work on their 3-line database. The
> >    database was not optimum (flat) for strtok, but as i do not know what the
> >    problem was, it is offline until i know how they broke it. I don't even
> >    know how they called the function. But i am not looking into it myself at
> >    this time. It works for me, i use it many times per minute, every hour of
> >    every day.
> > 
> > 
> > Kat
> > 
> > 
> -- 
> Regards
> Tony Steward
> www.locksdownunder.com
> 
> IF IT IS TO BE IT IS UP TO ME!
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu