diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 3b9ec5e0a39..dd36830a2dc 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -3872,17 +3872,6 @@ bar
-
- HIDE_TOAST_COMPRESSION
-
-
- If this variable is set to true, column
- compression method details are not displayed. This is mainly
- useful for regression tests.
-
-
-
-
HIDE_TABLEAM
@@ -3894,6 +3883,17 @@ bar
+
+ HIDE_TOAST_COMPRESSION
+
+
+ If this variable is set to true, column
+ compression method details are not displayed. This is mainly
+ useful for regression tests.
+
+
+
+
HISTCONTROL
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 97fc680f1f7..ba657789353 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -374,10 +374,10 @@ helpVariables(unsigned short int pager)
" true if last query failed, else false\n"));
fprintf(output, _(" FETCH_COUNT\n"
" the number of result rows to fetch and display at a time (0 = unlimited)\n"));
- fprintf(output, _(" HIDE_TOAST_COMPRESSION\n"
- " if set, compression methods are not displayed\n"));
fprintf(output, _(" HIDE_TABLEAM\n"
" if set, table access methods are not displayed\n"));
+ fprintf(output, _(" HIDE_TOAST_COMPRESSION\n"
+ " if set, compression methods are not displayed\n"));
fprintf(output, _(" HISTCONTROL\n"
" controls command history [ignorespace, ignoredups, ignoreboth]\n"));
fprintf(output, _(" HISTFILE\n"
@@ -489,10 +489,10 @@ helpVariables(unsigned short int pager)
" same as the dbname connection parameter\n"));
fprintf(output, _(" PGHOST\n"
" same as the host connection parameter\n"));
- fprintf(output, _(" PGPASSWORD\n"
- " connection password (not recommended)\n"));
fprintf(output, _(" PGPASSFILE\n"
" password file name\n"));
+ fprintf(output, _(" PGPASSWORD\n"
+ " connection password (not recommended)\n"));
fprintf(output, _(" PGPORT\n"
" same as the port connection parameter\n"));
fprintf(output, _(" PGUSER\n"