Style nitpick: watch out for the indentation!

But hmm what I'd actually recommend here is to fold those two lines above into one:

    my @recv_talkids = map { ... } sort {...} @recv;