activitats, sort and errors