gj_utils: ensure the returned list is sorted.
gj_utils: extract helper method _get_prompt_help().