From 6fadb54ed317c59062ab4fe28b12bbbbcf9b7fc0 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Tue, 15 Oct 2013 07:04:37 -0600 Subject: [PATCH] Version sort --- pkgs/plt-services/meta/pkg-index/official/static/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js index 8af2282498..b6591ec4bf 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -99,7 +99,8 @@ $( document ).ready(function() { else { return [tag, " "]; } } ) )); - $( "#pi_versions" ).html("").append( $.map( pkgi['versions'], function ( vo, v ) { + $( "#pi_versions" ).html("").append( $.map( Object.keys(pkgi['versions']).sort(), function ( v, vi ) { + var vo = pkgi['versions'][v]; if ( v == 'default' ) { return []; } else {