PIM-3475: Fix attribute options sort order in import/export

| Q                    | A
| -------------------- | ---
| Bug fix?             | Y
| New feature?         | N
| BC breaks?           | Y
| CI currently passes? | Y (nidup)
| Tests pass?          | Y (nidup)
| Scenarios pass?      | Y (nidup)
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | Y
| Fixed tickets        | PIM-3475
| DB schema updated?   | N
| Migration script?    | N
| Doc PR               | N