Develop an algorithm in Python to reverse the order of words in a sentence.
Sentence: I love programming
def reverse(sentence):
 words = sentence.split(' ')
 words.reverse()
 
 return ' '.join(words)

print(reverse("I love programming"))  // Output: "programming love I"