refactor Comment#ordered_for_story_or_thread_for_user method

cleaner, more robust, and more efficient.