10.2 recursive sort of array