array is now correctly sorted