Hi,
You can use the STABLE addition in sort if you want to keep the order same each time. Please read the F1 document for SORT for more details. Here is an extract -
STABLE is used to perform stable sorts, which means that the relative order of rows (an order that does not change in the sort key) remains unchanged in the sort. Without the STABLE addition, the order is not stable and multiple sorting of a table using the same sort key can result in a different order each time the table is sorted.
Best Regards,
Saurabh