Returned previous reordering algorithm