Forum OpenACS Q&A: Response to trying to understand the acs_attributes table... what are sort_order, static_

constraint acs_attributes_sort_order_un
unique (attribute_id, sort_order),

Looking again, I think sort_order should be unique to object_type, not attribute_id. Also, making it a real number would make it more flexible when trying to place a new attribute in order between two consecutive integers.