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

http://hub.qgis.org/issues/7459