{section: TJ's simple scripts} {subsection: sort_ads.pl} -A script to sort a collection of classads by key without reordering the ads. What it actually does is accumulate lines from stdin until it gets to a blank line, then prints out those lines sorted and clears the collection. +A script to sort a collection of classads by key without reordering the ads. What it actually does is accumulate lines from stdin until it gets to a blank line, then prints out those lines sorted. {file: sort_ads.pl} #!/usr/bin/env perl use strict;