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 {