Add sorting state