The thing is, sorting on the X axis of a 2D array preserves the column data, but sorting on the Y axis does not preserve the row data.
The other thing is you've said 'X stores the names, y stores the points' but this doesn't make sense. You're storying names AND scores in both X and Y dimensions. What you meant is you're storing names in row y=0 and scores in row y=1.
Anyway what you said in your last post is true. If you had the scores in row 0, then sorting on X would work.
Edit: realised I pretty much repeated what BH said. Anyway, just use one of the capx's provided above