Sort points by x within each group in sortDataByGroup. groupedData
from BasesQueryResult is not guaranteed to be presorted, and
svelteplot's Line draws the polyline in array order, so without an
x-sort the line could connect points out of chronological order.
Adds an example data-points base/dataset to reproduce.