Fix data point sorting.