Added sort direction.