# Sort a 2D array by column ((5th in this case) sortedarray = coordarray[coordarray[:,5].argsort()]