copied src/grid/sort_piece_list.F90 to src/base/sortable_list.F90
sorting routine moved to an abstract type