adjusted sort variable to determine value by adapting value of sort_order variable