This functions merges values array (&[Vec<ScalarValue>]) into single array Vec<ScalarValue>
Merging done according to ordering values stored inside ordering_values (&[Vec<Vec<ScalarValue>>])
Inner Vec<ScalarValue> in the ordering_values can be thought as ordering information for the
each ScalarValue in the values array.
Desired ordering specified by sort_options argument (Should have same size with inner Vec<ScalarValue>
of the ordering_values array).