order by

From: Jodi Kanter <jkanter(at)virginia(dot)edu>
To: Postgres SQL List <pgsql-sql(at)postgresql(dot)org>
Subject: order by
Date: 2003-03-26 17:38:36
Message-ID: 002701c2f3be$880749b0$de138f80@virginia.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Is there a known problem with the SQL order by clause within postgres version 7.2.3?
I am trying to sort a field which holds file names that have some spaces as well non-alphanumeric characters, including underscores (see below).

The results of:
select study_name from study order by study_name;

Study1a
Study 1b
Study 1c
Study1d

The results of sorting in Perl (which uses Linux's underlying sort function)

Study 1c
Study 1b
Study1a
Study1d

Is there any way around this difference?
Thanks
Jodi
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter(at)virginia(dot)edu


Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jodi Kanter 2003-03-26 18:12:30 order by
Previous Message Michael A Nachbaur 2003-03-26 16:55:21 Re: Off topic : world database