sort_list green refactor 1

Refactor with metaprogramming!!
sort list final refactor with metaprogramming
sort list final refactor