aboutsummaryrefslogtreecommitdiffstats
path: root/test/sortfor.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/sortfor.awk')
-rw-r--r--test/sortfor.awk7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/sortfor.awk b/test/sortfor.awk
index f61200da..611eca64 100644
--- a/test/sortfor.awk
+++ b/test/sortfor.awk
@@ -1,8 +1,9 @@
-BEGIN {
- PROCINFO["sorted_in"] = 1
-}
{ a[$0]++ }
END {
+ PROCINFO["sorted_in"] = "ascending"
+ for (i in a)
+ print i
+ PROCINFO["sorted_in"] = "descending"
for (i in a)
print i
}