Fix to ensure that version is escaped for BZ#979247.
Moved the RevisionNodeSort class to content spec commons.
Fix to ensure that version is escaped for BZ#979247.
Moved the mergeRevisionHistories() method to the content spec commons library.