Constraint-Governed Sorting Architecture