initial commit for my_sort_method
works except for duplicates values
works with duplicate values in a list