Several fixes, most notably checkbox sorting working and stable