In a Decision Tree algorithm I implement an optimisation where I first sort the vector of data once and then I pick up the various items with searchsorted.
All fine for integers, floats, even strings… but If the vector is of custom types for which no isless is defined it shouldn’t work.
Is there then a method I can first check on a Vector{T} to see if the vector is sortable, without relying to use exceptions ?
The Julia documentation concerning “sorting” is here, but I couldn’t find any reference to a issortable function