Skip to content

Commit

Permalink
excaping and sorting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Mar 9, 2015
1 parent 220d525 commit a7db785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions willmcgugan.notes/media/js/notes.js
Expand Up @@ -43,7 +43,7 @@ function fuzzy_match(text, search)
}
else
{
tokens.push(text[n])
tokens.push(escape_html(text[n]))
}
}
if (i != search.length)
Expand Down Expand Up @@ -184,8 +184,8 @@ function Book(note_selector, options)
{
function cmp_titles(a, b)
{
var title_a = a['title'];
var title_b = b['title']
var title_a = a['title'].toLowerCase();
var title_b = b['title'].toLowerCase();
if (title_a < title_b) {return -1;}
if (title_a > title_b) {return +1;}
return 0;
Expand Down

0 comments on commit a7db785

Please sign in to comment.