added ordering by history