sort array task