Change history sorting so expired transactions can float away