1 1 12.2 Controlling Array Traversal and Array Sorting 1 ================================================== 1 1 'gawk' lets you control the order in which a 'for (INDX in ARRAY)' loop 1 traverses an array. 1 1 In addition, two built-in functions, 'asort()' and 'asorti()', let 1 you sort arrays based on the array values and indices, respectively. 1 These two functions also provide control over the sorting criteria used 1 to order the elements during sorting. 1
1 · Controlling Array Traversal How to use PROCINFO["sorted_in"]. · Array Sorting Functions How to use 'asort()' and 'asorti()'. 1