Edit the following Python function to return a sorted list of the words in the given string.
def get_words(text):
    words = text.split()
    return words
def get_words(text):
    words = text.split()
    return sorted(words)