Skip to content

Commit

Permalink
Merge pull request #203 from niole/issue184
Browse files Browse the repository at this point in the history
sort order of all files and directories is now case-insensitive
  • Loading branch information
minrk committed Jul 14, 2015
2 parents 21fb85a + 248c15e commit df7a270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebook/static/tree/js/notebooklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ define([
if (type_order[a['type']] > type_order[b['type']]) {
return 1;
}
if (a['name'] < b['name']) {
if (a['name'].toLowerCase() < b['name'].toLowerCase()) {
return -1;
}
if (a['name'] > b['name']) {
if (a['name'].toLowerCase() > b['name'].toLowerCase()) {
return 1;
}
return 0;
Expand Down

0 comments on commit df7a270

Please sign in to comment.