I have written a comparator to sort the collection based on "id" like this:
comparator: function(coll) {
return coll.get('id');
}
This works fine for input: "id-1, id-0, id-2, id-199" to sort as "id-0, id-1, id-2, id-199"
But does not sort numerically here: "id-1, id-0, id-2, id-199, id-99" as "id-0, id-1, id-2, id-199, id-99" -- id-99 should be before id-199.