renamed sort to sort_map-reduce