remove dangerous sort() from attrgen