fix sorting by presence

we forgot to parseInt(...) a string representation of present. this lead to
lexicographic ordering, instead of numeric ordering

fix #454