Re: furiously yours - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: furiously yours
Date
Msg-id Pine.LNX.4.30.0106100108070.778-100000@peter.localdomain
Whole thread Raw
In response to Re: furiously yours  ("Rony Khoury" <rkrk@hotmail.com>)
List pgsql-bugs
Rony Khoury writes:

>   for(i=0;i<3;i++) {
>     for (j=0;j<3;j++) {
>       if (strcmp(tparr[i],tparr[j]) == -1) {
>         sprintf(tpstring,"%s",tparr[i]);
>         sprintf(tparr[i],"%s",tparr[j]);
>         sprintf(tparr[j],"%s",tpstring);
>       }
>     }
>   }

You need to use strcoll() to get locale-dependent sorting. -- Or not, if
you don't.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: furiously yours
Next
From: Stephan Szabo
Date:
Subject: Re: furiously yours