Allow data_order to be a sorting function