fixed sorting of employee checkboxes