The order of words in Spanish is a discipline known as Syntax. Any order is not possible, hence the study of the appropriate ways to order them within the sentence.