On Thu, Sep 10, 2015 at 12:35 PM, Ken Tanzer <ken.tanzer@xxxxxxxxx> wrote: > Any thoughts about what's going on, what to do about it, or what obvious point I missing? Thanks in advance! This is the expected behavior. Locale rules will weigh the punctuation character and space you added after primary alphabetical ordering. Therefore, the 'E' in 'CLARKE' is more or less compared with the first character of the first name in the case that you show, because those code points are both what Unicode calls "primary weights". You're not displaying the string you're ordering by anyway, so you can just not concatenate the ', ' string (so name_last || name_first), and it will work as you expect, I believe. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general