Install ruby-version-sorter by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-version-sorter
Description:
fast sorting of version strings
Used to sort version strings faster. It is used to sort a repository's tags. It is used as follows require 'version_sorter' versions = %w( 1.0.9 2.0 1.0.10 1.0.3 ) VersionSorter.rsort(versions) # => ["2.0", "1.0.10", "1.0.9", "1.0.3"] VersionSorter.sort(versions) # => ["1.0.3", "1.0.9", "1.0.10", "2.0"]
Homepage: http://github.com/defunkt/version_sorter
Version: 2.1.0+dfsg-1build2
Section: universe/ruby