You can also use dataSort on the dataset prior to saving to t6 file.
https://www.zorro-project.com/manual/en/data.htm