make sort direction an enum