added sort array example