replaces uses of extra::sort::quick_sort in keycode/scancode