Yeah, I think if underscore's `sortBy` is stable, using `Math.floor` might be safer?