Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b3bd5a0

Browse files
committed
Update statement about sorting of character-string data.
The sort order is no longer fixed at database creation time, but can be controlled via COLLATE. Noted by Thomas Kellerer.
1 parent 1a09695 commit b3bd5a0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/src/sgml/ref/select.sgml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,13 @@ SELECT name FROM distributors ORDER BY code;
10491049
</para>
10501050

10511051
<para>
1052-
Character-string data is sorted according to the locale-specific
1053-
collation order that was established when the database was created.
1052+
Character-string data is sorted according to the collation that applies
1053+
to the column being sorted. That can be overridden at need by including
1054+
a <literal>COLLATE</> clause in the
1055+
<replaceable class="parameter">expression</replaceable>, for example
1056+
<literal>ORDER BY mycolumn COLLATE "en_US"</>.
1057+
For more information see <xref linkend="sql-syntax-collate-exprs"> and
1058+
<xref linkend="collation">.
10541059
</para>
10551060
</refsect2>
10561061

0 commit comments

Comments
 (0)