Fix #7459: Sorting of attribute table takes type into account
Merge pull request #484 from matthias-kuhn/attribute-table-sort

Fix #7459: Sorting of attribute table takes type into account