update + sort