allow to order by distance

numLiterals has nothing to do with conversion?