Added sort state