Permalink
Browse files

Sort words

  • Loading branch information...
1 parent cf46051 commit 39d95fb2359774bed9fb7328309a070f4e562d68 Per Thulin committed Aug 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 static/main.js
View
@@ -23,6 +23,10 @@ function extractWords(map) {
}
}
+ words = words.sort(function(a, b) {
+ return a.size < b.size;
+ });
+
return words;
}

0 comments on commit 39d95fb

Please sign in to comment.