Support alternative order of words to describe gradient direction

Fixes #245