ensure _scriptcraft.js is first to doc

This commit is contained in:
walterhiggins 2013-02-10 18:04:45 +00:00
parent c44dd44e66
commit 3c178450c4

View file

@ -34,7 +34,8 @@ var sortByModule = function(a,b){
var afile = aparts[aparts.length-1]; var afile = aparts[aparts.length-1];
var bdir = bparts[bparts.length-2]; var bdir = bparts[bparts.length-2];
var bfile = bparts[bparts.length-1]; var bfile = bparts[bparts.length-1];
if (afile == "_scriptcraft.js")
return -1;
if(adir<bdir) return -1; if(adir<bdir) return -1;
if(adir>bdir) return 1; if(adir>bdir) return 1;
if (afile.indexOf(adir) == 0) if (afile.indexOf(adir) == 0)