sort: let field_selector return NULL at the end
counting: Let get_range_size return double
sort: let comp_* functions compare double
tests: update expected/v6

The range size in the old file was also incorrect.