Hi,
All PennController results lines include an EventTime column, and by default all PennController trials report a results line for when the trial started: you can use the value of the EventTime column from those lines to sort the trial by running order (note that the lines int the results file should already be sorted using the values from that column)
Another option would be to do something like that:
Header(
newVar("runningOrder", 0).global().set(v=>v+1)
)
.log("runningOrder", getVar("runningOrder"))
Jeremy