AWK Easy · Lesson 2

Sorted traversal with asort and asorti

Sort array values with asort, sort keys with asorti, keep the original map, and print frequency tables in a stable order.

Lessons · AWK Easy · Lesson 2 of 10

Sorted traversal with asort and asorti

Sort array values with asort, sort keys with asorti, keep the original map, and print frequency tables in a stable order.

Illustration for AWK
Sort array values with asort, sort keys with asorti, keep the original map, and print frequency tables in a stable order.