Setting Chart X axis min tick size?

I wonder what I’m still missing, I’m getting:

File “event:propertyChange”, line 9, in
TypeError: sort(): 1st arg can’t be coerced to com.inductiveautomation.ignition.common.Dataset

Line 9: sortedData = system.dataset.sort(newData2, “WEEK” , 1)

----Under the root container, I have customer properties configured for three datasets (dbbrowse, newData2, and sortedData).

if event.propertyName == “dbbrowse”:
dbbrowse = system.dataset.toPyDataSet(event.newValue)
newData2 = []

for row in dbbrowse:
newData2.append([row[1], row[2], row[3]])

event.source.newData2 = system.dataset.toDataSet([“WEEK”, “LBS PMH”, “GOAL”], newData2)
sortedData = system.dataset.sort(newData2, “WEEK” , 1)