CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 30 Jul 2025 17:04:24 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091025103951
location: https://web.archive.org/web/20091025103951/https://github.com/binary42/version_sorter
server-timing: captures_list;dur=2.266614, exclusion.robots;dur=0.048010, exclusion.robots.policy;dur=0.030304, esindex;dur=0.020426, cdx.remote;dur=157.565101, LoadShardBlock;dur=559.239650, PetaboxLoader3.datanode;dur=337.494984, PetaboxLoader3.resolve;dur=202.023328
x-app-server: wwwb-app200
x-ts: 302
x-tr: 756
server-timing: TR;dur=0,Tw;dur=21,Tc;dur=1
set-cookie: SERVER=wwwb-app200; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 30 Jul 2025 17:04:26 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 25 Oct 2009 10:39:51 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "ead67ad8e23f71c0cb1f4f8051902246"
x-archive-orig-x-runtime: 133ms
x-archive-orig-content-length: 21016
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 25 Oct 2009 10:39:51 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 16 Oct 2009 23:33:37 GMT", ; rel="prev memento"; datetime="Sun, 18 Oct 2009 00:15:13 GMT", ; rel="memento"; datetime="Sun, 25 Oct 2009 10:39:51 GMT", ; rel="next memento"; datetime="Mon, 02 Nov 2009 01:46:35 GMT", ; rel="last memento"; datetime="Sun, 14 Feb 2010 15:16:00 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: webgroup-20100505163643-00028/ARCHIVEIT-1147-WEEKLY-AVVNXU-20091025103949-00040-crawling105.us.archive.org.warc.gz
server-timing: captures_list;dur=0.488813, exclusion.robots;dur=0.022841, exclusion.robots.policy;dur=0.014057, esindex;dur=0.010027, cdx.remote;dur=67.358723, LoadShardBlock;dur=680.746100, PetaboxLoader3.datanode;dur=630.442091, PetaboxLoader3.resolve;dur=616.128534, load_resource;dur=823.043837
x-app-server: wwwb-app200
x-ts: 200
x-tr: 1631
server-timing: TR;dur=0,Tw;dur=231,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
binary42's version_sorter at master - GitHub
Hi! binary42 is using GitHub to share code with you!
But GitHub is more than just a place to share code. It's a place to keep tabs on your favorite developers and projects, easily contribute fixes and new features, and visualize what's going on inside your codebase!
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Fork of defunkt/version_sorter | |
Description: | edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/binary42/version_sorter.git
Give this clone URL to anyone.
git clone git://github.com/binary42/version_sorter.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:binary42/version_sorter.git
|
name | age | message | |
---|---|---|---|
![]() |
README.markdown | Fri Oct 09 10:05:24 -0700 2009 | add tags example [defunkt] |
![]() |
tags.txt | Fri Oct 09 13:47:42 -0700 2009 | Move to tags.txt for example input. [binary42] |
![]() |
version_sorter.rb | Fri Oct 09 21:20:08 -0700 2009 | I go back and forth on this style but I think I... [binary42] |
README.markdown
VersionSorter
This is not code I wrote. Just code I use.
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"]
Speed
Want to make it faster?
require 'tags'
VersionSorter.sort(@tags)
The @tags
array is YUI's tags, which they create on build.
This feature is coming soon. Sit tight!