Function template for sorting one array based on sort order of another


C# has a Sort method on arrays that - once array A is sorted it can sort array B into the same order

XOJO has a sortWith method so one can writ: arrayA.Sortwith(arrayB )

Array.Sort(sortOrder, chars)

Does anyone have anything similar for Juce ? s