[NUCCORE-1151] Support for more flexible ordering expressions