aya-lang / aya

Pocket sized programs
MIT License
54 stars 3 forks source link

Allow sorting Strings with OP_Dot_SortUsing #102

Closed BlazingTwist closed 2 months ago

BlazingTwist commented 2 months ago

I've noticed that ["c" "a" "b"] C works however ["c" "a" "b"] {} .C didn't work.

Attempting to sort different key types still results in the correct error:

.C: all objects must be comparable to each other

["c" "a" 2] {} .C
~~~~~~~~~~~~~~~~^
Function call traceback:
nick-paul commented 2 months ago

Looks great thanks!