From 2400cc5143383a881356a9f55e93b60037d851e5 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 29 Mar 2011 20:51:30 +0200 Subject: Revise array sorting for PROCINFO["sorted_in"]. --- doc/gawk.1 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'doc/gawk.1') diff --git a/doc/gawk.1 b/doc/gawk.1 index 83a91094..ff3c0a20 100644 --- a/doc/gawk.1 +++ b/doc/gawk.1 @@ -1082,13 +1082,20 @@ system call. \fBPROCINFO["sorted_in"]\fP If this element exists in .BR PROCINFO , -.IR "no matter what its value" , -then -.I gawk -will cause array +then its value controls the order in which array elements +are traversed in .B for -loops -to traverse the array indices in sorted order. +loops. +Supported values are +\fB"ascending index string"\fR, +\fB"ascending index number"\fR, +\fB"ascending value"\fR, +\fB"descending index string"\fR, +\fB"descending index number"\fR, +\fB"descending value"\fR, and +\fB"unsorted"\fR. +The order specification words can be truncated, or omitted (provided +that at least one is present), or given in any order. .TP \fBPROCINFO["version"]\fP the version of -- cgit v1.2.3