manpagez: man pages & more
info gawk
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.2 Controlling Array Traversal and Array Sorting

gawk lets you control the order in which ‘for (i in array)’ loops will traverse an array.

In addition, two built-in functions, asort() and asorti(), let you sort arrays based on the array values and indices, respectively. These two functions also provide control over the sorting criteria used to order the elements during sorting.


© manpagez.com 2000-2024
Individual documents may contain additional copyright information.