Save sorting order.