Remove unused sortResult fn to pass jshint