EAGLESIX-812 Fix jshint errors; fix some weird test issues in sort