smart sorted records for buy and sell