diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index f1a8a9a0ba5..acd824071f7 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -14728,6 +14728,12 @@ table2-mapping
jsonb, though not for json. The comparison
operators follow the ordering rules for B-tree operations outlined in
.
+ See also for the aggregate
+ function json_agg which aggregates record
+ values as JSON, the aggregate function
+ json_object_agg which aggregates pairs of values
+ into a JSON object, and their jsonb equivalents,
+ jsonb_agg and jsonb_object_agg.
@@ -16183,15 +16189,6 @@ table2-mapping
-
-
- See also for the aggregate
- function json_agg which aggregates record
- values as JSON, the aggregate function
- json_object_agg which aggregates pairs of values
- into a JSON object, and their jsonb equivalents,
- jsonb_agg and jsonb_object_agg.
-