SBarnes wrote:If I am understanding you request correctly
you don't need a plugin.
In the system settings under inventory there is a setting called
StoredProcForInventoryTransactionHistoryGrid this points to a stored procedure that works like custom form tabs do, i.e. two datasets returned one for the schema and one for the data.
Just copy the procedure to one with a different name add your order by clause, and repoint the setting to your new procedure.

Wrong grid.
The tab captioned Transaction History on the Order tab of the Inventory Maintenance form uses the stored proc you mentioned, StoredProcForInventoryTransactionHistoryGrid.
What Danny is asking about is the Transaction Detail of the SOH tab of the Inventory Maintenance form.
That grid does not used a stored proc. As a general rule, if there are user editable fields on a grid, then we cannot use a stored proc - and that is the case with the grid on the Transaction Detail tab of the SOH tab of the Inventory Maintenance form.
To see an example of how we sort grids programmatically, in Demo Data there is a plugin - Sort Notes - which changes the sort order of the notes grids for Debtors and Creditors and Contacts maintenance forms - just do the same as that - the grid on the Inventory Maintenance form is named grdSOH.