Comment on I'll just sort it myself

<- View Parent
CheezyWeezle@lemm.ee ⁨1⁩ ⁨year⁩ ago

I think the main shortcoming here is that there isnt a way to specify the type to sort as, instead you have to write the function to compare them as numbers yourself. If it’s such a simple implementation, why isn’t it officially implemented? Why isn’t there a sortAs() that takes two args, the input list, and a Type value? Check every element matches the type and then sort, otherwise return a Type Error.

source
Sort:hotnewtop