Fix saving primary flag for multi-value-attributes
make one link for sorting dependend on the current sort order
fix integration-tests
Merge pull request #34 from osiam/osng-507

Osng 507