fixed two small issues in build_all_and_run_sort_demo