Re: I need sorting help

[email protected] (Clifton Wood)
Newsgroups perl.perl6.users
Message-ID <CADaz7GmoKL_=a++xqzvMcbxwhO_tdxfPy8o7x5D7qV=1D4kNRw@mail.gmail.com>
Easy multisort!

my @h = (

{

name => "albert",
age => 40,
size => 2

},
{

},
{

);

#
({age => 40, name => albert, size => 2} {age => 69, name => albert, size =>
3} {age => 22, name => andy, size => 3})


On Sat, Mar 2, 2024 at 9:29 PM ToddAndMargo via perl6-users <
[email protected]> wrote:

> On 3/2/24 05:13, Elizabeth Mattijsen wrote:
> > <afoo12 afoo2>.sort(*.split(/\d+/, :kv).map({ (try .Numeric) //
> $_}).List)
>
> Hi Elizabeth,
>
>   It works perfectly.  Thank you!
>
>   I have no idea why, I will ask you in another post
>
> -T
>
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.