Checkboxes start checked and the sorting doesn't break