diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 5e8ff1154..d630de66a 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -67,19 +67,19 @@ define([ // directories have file size of undefined return (function(a, b) { if (a.size === undefined) { - return (ascending) ? 1 : -1; - } - - if (b.size === undefined) { return (ascending) ? -1 : 1; } + if (b.size === undefined) { + return (ascending) ? 1 : -1; + } + if (a.size > b.size) { - return (ascending) ? 1 : -1; + return (ascending) ? -1 : 1; } if (b.size > a.size) { - return (ascending) ? -1 : 1; + return (ascending) ? 1 : -1; } return 0; @@ -548,7 +548,7 @@ define([ $("") .addClass("file_size") .addClass("pull-right") - .css("width", "50px") + .css("width", "65px") .appendTo(item); $("")