bug fix: sort health checks

I missed this when this was added: this shouldn't reuse the function arguments `a` and `b`; these are different values. `var aVal` and `var bVal` (or something more clever), or rename the function arguments.