add sorting by done and priority and save on text changed