sort by blockHeight and timestmap in history