refactoring of sorting menu buttons switch in ThreadViewFragment