doc: mention ORDER BY for some aggregates, add ORDER BY examples
Discussion: https://postgr.es/m/CAKFQuwb+4SWnfrfQKB-UM1P1x97Xk+ybSar4xM32XGLd=fq9bA@mail.gmail.com
Co-authored-by: David G. Johnston
Backpatch-through: master
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/77513529420253626e41df967d54e76510782c64
Modified Files
--------------
doc/src/sgml/func.sgml | 26 ++++++++++++++++++--------
doc/src/sgml/syntax.sgml | 38 +++++++++++++++++++++++++-------------
2 files changed, 43 insertions(+), 21 deletions(-)