sort direction, etc