If you compare the results of the query "red carpet" to the results of the query "carpet red" (same words in the reverse order), you are likely to find that the result set is different.
There are quite a few factors that can impact the results based on the word order, including:
Most of the settings above can be configured based on your preferences, although it's worth noting that the default settings are optimized for most search use cases.
Looking at the "Query Alternatives" being generated by each of the example queries you provided will illustrate some of these differences:
If you are concerned with specific scenarios where the reverse word order is not producing the desired results, it's possible that Rules could be helpful (ie: replacing the query"red carpet" with "carpet red").
If this is a more general issue, though, we would recommend adjusting the index configuration as needed.