use order by symbols instead of references in SearchNode/Task
support distance function in the order by clause