Reintroducing code removed from merge

> Allow BlockDate sorting by id