Fix bug when sortAttr is nil