sort

Sort the array according to scores, and return the sorted indexes of previous unsorted nodes (unchecked nodes)

Return

indexes of newly sorted (unchecked) nodes, in ascending order, or null if the array is already fully sorted