Change perf_sort_by_key to use int_ and long_ instead of int and long