Associative array ordering in awk during migration
Goal Replace a legacy script that reads a log file, counts occurrences per user, and writes a sorted report. The replacement must run with the existing cron job and produce identical output without downtime. Constraints The new script must use a single awk invocation, as the environment only provides the default awk binary (POSIX). The log file is large, so