sort response to list_commands