write out method for my_array_sorting_method