Most of the time functions don't operate "externally", so SORTROWS doesn't alter your arrayP defined in the workspace. It creates a new sorted array that it outputs. You have to store this output back intoP if you wantP to be the sorted version. If you wanted to keep the original, you could store it into a new variable:
Best Answer