Prompt comment sorting method