use ordinal scale for non-numeric inputs

Change-Id: I56be0f733d7c4d73533e22b4375e1817080aa7cf
Reviewed-on: http://review.couchbase.org/32572
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>