diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index f4eaa8556..97d834a4e 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -2788,8 +2788,8 @@ define([ keys.sort(function(a, b) { var _a = props[a]; var _b = props[b]; - if (a < b) { return mult * -1; } - if (b > a) { return mult; } + if (_a < _b) { return mult * -1; } + if (_b > _a) { return mult; } return 0; }); return keys; diff --git a/www/common/outer/userObject.js b/www/common/outer/userObject.js index db53c1c28..f5cf4bbee 100644 --- a/www/common/outer/userObject.js +++ b/www/common/outer/userObject.js @@ -871,7 +871,7 @@ define([ var sf = files[SHARED_FOLDERS]; var rootFiles = exp.getFiles([ROOT]); var root = exp.find([ROOT]); - var parsed, secret, el; + var parsed /*, secret */, el; for (var id in sf) { el = sf[id]; id = Number(id);