I am trying to sort node IDs by position. I created 2D REAL array where 1st column is node ID and second is position. Next I use mth_sort_column to sort by position column. However, it does not produce expected result. The first problem is that I cannot convert correctly INTEGER into REAL number:
example:
REAL a
INTEGER b
b=31100069
a=b
dump a, b
The result is:
$# REAL a = 31100068.
$# INTEGER b = 31100069
How to explain change of the value? How to make conversion correctly? Do I have to write my own sorting function?