This is with Postgresql.
A column in a table contains string values with punctuations. The values are "aac", ".aaa", "aa_b", etc. When this column is specified in order by clause, the order of results is almost random. The strings starting with a period should appear at the top, which doesn't happen. They appear somewhere in the middle.
Surprisingly, this behavior is seen with only one database. The same query works fine on database on other host.
What could be the possible reason for this?