Change the sort text based on if there's a term or not