my %rows;
if (my $lang = shift @ARGV) {
my %filter = (lang => $lang);
- my $cols = "ref, id, prio, array_to_string(form || alt, '/')";
+ my $cols = "ref, array_to_string(form || alt, '/'), prio, id, cat";
%rows = $db->select(_word_ref => $cols, \%filter)->map_arrays;
say pp \%rows
=~ s/\\x\{([0-9A-F]+)\}/chr hex $1/ger;