python sort array of integers