Accept non-string literals when ordering by function.