troy opened this issue 11 years ago · 1 comments
order currently sorts: 0, 1, 10, 11, .. 2 because Javascript's sort method defaults to lexicographic sorting; details. That page has an example comparison function to sort numerically:
order
sort
function compareNumbers(a, b) { return a - b; }
Thank you