If the source document has been deleted, version document won't have a parent nor a path.
So sorting by ecm:path will raise a NPE.
If both compared path are null, comparison is done with document uid.
If the source document has been deleted, version document won't have a parent nor a path.
So sorting by ecm:path will raise a NPE.
If both compared path are null, comparison is done with document uid.