sorting an int array