Help for this page
last unless $line =~ m{ ( [^(]+ ) # 1 anything except opening paren ... $a->[1] cmp $b->[1] # sort by $1 } @entries;