Public bug reported: Option -s/--sort is supposed to sort the output, but doesn't. Attached diff fixes the problem.
Actually, the patch fixes two unrelated bugs. One prevents sorting altogether, another one shows up only when specifying several sorting fields. The patch uses 'delete array' which is non-POSIX, but supported by all awk versions currently in Debian (mawk, gawk, original-awk). ** Affects: dpkg-awk (Ubuntu) Importance: Undecided Status: New ** Affects: dpkg-awk (Debian) Importance: Unknown Status: Unknown ** Tags: bitesize patch ** Patch added: "Fix sorting of the output" https://bugs.launchpad.net/bugs/1093674/+attachment/3467726/+files/fix-sort.diff ** Bug watch added: Debian Bug tracker #556651 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556651 ** Also affects: dpkg-awk (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556651 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093674 Title: Sorting the output with -s/--sort doesn't work To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg-awk/+bug/1093674/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs