Fix bug: graph nodes should be sorted by date