OCFL / ocfl-java

A Java OCFL implementation
MIT License
18 stars 12 forks source link

fixed bug in ordering versions for validation #45

Closed pwinckles closed 2 years ago

pwinckles commented 2 years ago

The validation code relies on the versions being sorted in a specific order. Unfortunately, there was a bug in the sorting, which caused the validation to fail in objects with a lot of versions. This PR fixes the sorting.