Rename my_DeviceMerge to merge_sort_by_key and give it the standard interface.