We added ORDER BY clause to the query, but that returns different ordering
depending on the LC_COLLATE setting on a given machine. So enforce the correct
ordering by specifying the desired collation in the query itself.
-- SELECT_VIEWS
-- test the views defined in CREATE_VIEWS
--
-SELECT * FROM street ORDER BY name,cname,thepath::text;
+SELECT * FROM street ORDER BY name COLLATE "C",cname COLLATE "C",thepath::text COLLATE "C";
name | thepath | cname
------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------
100th Ave | [(-122.1657,37.429),(-122.1647,37.432)] | Oakland
-- test the views defined in CREATE_VIEWS
--
-SELECT * FROM street ORDER BY name,cname,thepath::text;
+SELECT * FROM street ORDER BY name COLLATE "C",cname COLLATE "C",thepath::text COLLATE "C";
SELECT name, #thepath FROM iexit ORDER BY name COLLATE "C", 2;