sorted the edit page