add sort direction