fixed quirk where 'purpose' was not showing on node details
adding sort index to groups and attributes
applying sorting for groups and attributes