[Issue 10269] slap-constraint: Refactor to use a sorted array