Reload and sort versions

Adds an option to force the reloading of VersionsGraph and ensures that all versions are sorted according to their creation date.

This duplicates #642 which was accidentally deleted.