Releases: github/version_sorter
Releases · github/version_sorter
version_sorter 2.3.0
What's Changed
- Improve alphabetical ordering for non-version entries by @JamesMGreene in #19
version_sorter 2.2.4
version_sorter 2.2.2
- Correctly shift 64-bit values
version_sorter 2.0.2
- Correctly shift 64-bit values
version_sorter 2.2.1
- Avoid segfault due to missing NULL byte in
char *
.
version_sorter 2.0.1
- Avoid segfault due to missing NULL byte in
char *
.
version_sorter 2.2.0
- Add
VersionSorter.compare(version_a, version_b)
function that returns a positive or negative integer depending on the comparison of the two version strings. This is useful for implementing manual sorting based on multiple criteria.
version_sorter 2.1.0
Enable sorting arrays of arbitrary objects by providing a block that maps them to string value:
VersionSorter.sort(tags) { |tag| tag.name }
version_sorter 2.0.0
The entire library has been rewritten since version 1.x. Changes include:
- Fixed sorting of prerelease versions, e.g.
1.0.0.pre
or2.0.0-rc1
. Now in ascending sort they appear before the final release version. This is performed by sorting "words" (alphabetical component) before number components. - Big improvement in speed and memory footprint.
- New methods to change arrays in place:
VersionSorter.sort!(version)
VersionSorter.rsort!(version)