In OpenCV sortByKey is the preferable style of naming functions, not sort_by_key.