Search Postgresql Archives

wrong sort order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, maybe there is a problem with sorting latin10? Seems to be like
spaces don't exists just sorting.

Version() ->PostgreSQL 8.0.2 on i686-redhat-linux-gnu,
compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

SELECT nombreasociado, codigoasociado
FROM Asociados
WHERE nombreasociado LIKE 'VILLA%'
ORDER BY 1;

"VILLA CLAUDIA MARIA";2208
"VILLA CLOTILDE";2902
"VILLAFAA'E ALFREDO                 ";916
"VILLAFAA'E MARIA ESTER ROSA        ";933
"VILLAFAA'E MARIA  JULIA            ";7590
"VILLAFANE OSVALDO";3548
"VILLAGGI CARLOS RAUL";1523
"VILLAGRA ILEANA";2305
"VILLAGRA MARIA EUGENIA";7310
"VILLA HORACIO E                    ";2106
"VILLALBA MABEL";397
"VILLALBA ROLANDO A";398
"VILLALBA SILVIA MONICA";2917
"VILLA LUIS SANTIAGO";560
"VILLA MARIA ISABEL";2687
"VILLANI LUCRECIA LILIANA";6657
"VILLANUEVA DIEGO";5888
"VILLANUEVA RICARDO NORBERTO";4608
"VILLA PABLO JOSE";2717
"VILLAR EDUARDO";399
"VILLAR ERNESTO";400
"VILLARES JOSE ANGEL";7174
"VILLAR HUGO EDUARDO";3820
"VILLAR IGNACIO JAVIER";8385
"VILLAR MANUEL ANTONIO";3821
"VILLA ROCA MIGUEL ANGEL";1698
"VILLARREAL NORBERTO";1749
"VILLA SEBASTIAN MARCELO";8159
"VILLA STELLA MARIS";7180
"VILLATA ALBERTO LUIS";7646
"VILLATA MARCELO";5973
"VILLAVICENCIO CARLOS HORACIO";7953

but if you try:

SELECT nombreasociado, codigoasociado
FROM Asociados
WHERE nombreasociado LIKE 'VILLA %'
ORDER BY 1;

"VILLA CLAUDIA MARIA";2208
"VILLA CLOTILDE";2902
"VILLA HORACIO E                    ";2106
"VILLA LUIS SANTIAGO";560
"VILLA MARIA ISABEL";2687
"VILLA PABLO JOSE";2717
"VILLA ROCA MIGUEL ANGEL";1698
"VILLA SEBASTIAN MARCELO";8159
"VILLA STELLA MARIS";7180

 ¿? any clues ¿?

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux