Why treats PostgreSQL a hyphen (~) like a space when sorting a row?
In a simple table in PostgreSQL CREATE TABLE "SOMESCHEMA".newtable ( col1 varchar NULL ); I inserted three rows with the values "A 1" "A~2" "A 3" Whe I make a query like SELECT col1 FROM "SOMESCHEMA".newtable order by col1 desc;…