Sort array, tasks with arrays and strings