Accept non-string literals when ordering by function.
Merge pull request #507 from mdx-dev/feature/order-by-function-types

Accept non-string literals when ordering by function.