- or download this
def sort_native( cat_count ):
once = sorted( cat_count.keys() )
return sorted( once, key = lambda k: cat_count[ k ], reverse = True
+ )
- or download this
sort { $href->{$b} <=> $href->{$a} } sort keys %{$href}
- or download this
def sort_native( cat_count :dict[ str, int ] ) ->list[ str ]:
"""
...
"""
once = sorted( cat_count.keys() )
return sorted( once, key = lambda k: cat_count[ k ], reverse = True
+ )
- or download this
#!/usr/local/bin/python3.10
# Source: https://perlmonks.org/index.pl?node_id=11148702
...
time = time, time_format = time_format
)
sys.stderr.write( mess )
- or download this
# parv-20221210-two-sorts.py
collect : 15.9 s
...
stringification: 7.5 s
output : 0.1 s
total : 31.3 s