Re: I need sorting help

[email protected] (Ralph Mellor)
Newsgroups perl.perl6.users
Message-ID <CAPLR5ScStk0p0nrMTM3phqSsevLc0LrOdhVT7FZrNTB64wSAWw@mail.gmail.com>
On Sat, Mar 9, 2024 at 7:52 PM yary <[email protected]> wrote:

> how to sort by alpha & numeric segments (b3b, a1a, c20c) =>  (a1a, b3b, c2c)

Ahhh. D'oh. Thanks! 💚

Now I see what was required, or at least think I do:

.sort: {m:g/ \d+{make +$/} | \D+{make ~$/} /».made}

That does what was meant, right?

--
love, raiph
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.