The data set of which the labels have to be sorted.
RETURNS
An array in which the conversion can be read.
FUNCTION
It may happen that the labels differ from their position, e.g. label 0
is at position 2 etc. The function returns a pointer to an array in
which the labels are contained. This can be used in other functions
to correct for this shift.