Allow SEARCH before or after ORDER BY

Before should be preferred, but allow after for backwards compatibility