Sorting orders by date in scGetOrders


Is it possible to sort the orders in scGetOrders by date? They are now randomly (?) sorted, which does not make sense.


The sortorder of orders in scGetOrders is hardcoded to ordernr DESC, id DESC, which in typical usage should result in a descending sort with the latest order at the top.

Perhaps you’ve configured a custom simplecart.ordernr_format value which does not work with this sortorder?