refactoring "sorted command names"