AWK Medium · Lesson 4

Controlled for-in order with PROCINFO["sorted_in"]

Make gawk's for-in loops visit keys in a set order with built-in names like @ind_num_asc or your own comparison function, and sort with it.

Lessons · AWK Medium · Lesson 4 of 10

Controlled for-in order with PROCINFO["sorted_in"]

Make gawk's for-in loops visit keys in a set order with built-in names like @ind_num_asc or your own comparison function, and sort with it.

Illustration for AWK
Make gawk's for-in loops visit keys in a set order with built-in names like @ind_num_asc or your own comparison function, and sort with it.