| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 24 Dec 2025 04:26:51 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091018010159
location: https://web.archive.org/web/20091018010159/https://github.com/jordi/version_sorter/tree/master
server-timing: captures_list;dur=1.089278, exclusion.robots;dur=0.092419, exclusion.robots.policy;dur=0.074097, esindex;dur=0.015229, cdx.remote;dur=16.214237, LoadShardBlock;dur=174.052254, PetaboxLoader3.datanode;dur=54.821078, PetaboxLoader3.resolve;dur=30.475140
x-app-server: wwwb-app218-dc8
x-ts: 302
x-tr: 247
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app218; path=/
x-location: All
x-as: 14061
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 301
server: nginx
date: Wed, 24 Dec 2025 04:26:53 GMT
content-type: text/html; charset=utf-8
content-length: 104
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 18 Oct 2009 01:01:59 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20091018010159/https://github.com/jordi/version_sorter
x-archive-orig-x-runtime: 4ms
x-archive-orig-content-length: 104
x-archive-orig-cache-control: no-cache
cache-control: max-age=1800
memento-datetime: Sun, 18 Oct 2009 01:01:59 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
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: 52_12_20091017235622_crawl101-c/52_12_20091018004303_crawl101.arc.gz
server-timing: captures_list;dur=0.831976, exclusion.robots;dur=0.026908, exclusion.robots.policy;dur=0.011162, esindex;dur=0.013422, cdx.remote;dur=1026.808352, LoadShardBlock;dur=230.335416, PetaboxLoader3.datanode;dur=262.108754, PetaboxLoader3.resolve;dur=130.842058, load_resource;dur=200.042443
x-app-server: wwwb-app218-dc8
x-ts: 301
x-tr: 1492
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
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, 24 Dec 2025 04:26:53 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 18 Oct 2009 01:01:59 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "7e228324b857a17da97c9d91b631e474"
x-archive-orig-x-runtime: 113ms
x-archive-orig-content-length: 20734
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, 18 Oct 2009 01:01:59 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
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: 52_12_20091017235622_crawl101-c/52_12_20091018004303_crawl101.arc.gz
server-timing: captures_list;dur=0.456529, exclusion.robots;dur=0.014889, exclusion.robots.policy;dur=0.007059, esindex;dur=0.008900, cdx.remote;dur=6.351068, LoadShardBlock;dur=132.635718, PetaboxLoader3.datanode;dur=82.709058, PetaboxLoader3.resolve;dur=89.796839, load_resource;dur=43.798733
x-app-server: wwwb-app218-dc8
x-ts: 200
x-tr: 232
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
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
jordi's version_sorter at master - GitHub
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/jordi/version_sorter.git
Give this clone URL to anyone.
git clone git://github.com/jordi/version_sorter.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:jordi/version_sorter.git
|
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Fri Oct 09 10:05:24 -0700 2009 | add tags example [defunkt] |
| |
tags.rb | Fri Oct 09 10:05:24 -0700 2009 | add tags example [defunkt] |
| |
tags.txt | Fri Oct 09 11:22:49 -0700 2009 | Adding a newline delimited tags file for human ... [jqr] |
| |
version_sorter.rb | Thu Oct 15 05:10:51 -0700 2009 | Better test case [jordi] |
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!







