LPS-37702 Reverting a verions does not remove assets and assets can be removed without updating the version. So, assets should not increment the version.
LPS-37702 Fix metadata check always returning false when publishing.
LPS-37702 Don't update the metadata fields for the version being reverted too, instead update and create the next major version.
LPS-37702 Simplify the method and add file type check
LPS-37702 Sort