activate and deactivate sorting according to the edit mode of the dossier 
Issue #101