Closed thaopt closed 4 months ago
Please give me advice or sample if you have, thanks @nielstron Do you have any direct contact channel so i can contact you if faced any problem?
I recommend you don't actually sort inside the validator (too expensive!) but expect the caller to pass in a sorted list. you can then just check that subsequent elements are <=
if you really want to sort, you need to implement something that works on immutable lists, i.e. not in-place like merge sort