Mon 2019-04-22 21:08:55 UTC, G. M.-S.:
>
>
> It works with strings:
>
> sage: natsorted(a,key=*lambda* z:str(z))
>
> [x8, x9, x10, x11]
>

... which can be simplified to

    sage: natsorted(a, key=str)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to