When creating a function one can choose to sort the resulting Excel sheet. This can be set up both in the configurator and by manually editing the XML file.

Sort from/to column: Excel requires a sorting area for sorting. This is usually the start end end column of your output.

Sort by column:  The column used for sorting. Multiple columns can be used.

Set up sorting in configurator

Set up sorting in XML