add support for order by numeric scalar