Next: Two-way I/O, Previous: Nondecimal Data, Up: Advanced Features [Contents][Index]
gawk lets you control the order in which a
‘for (indx in array)’
loop traverses 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.
| • Controlling Array Traversal | How to use PROCINFO["sorted_in"]. | |
| • Array Sorting Functions | How to use asort()andasorti(). |