Bug report #6705
Arrow indicates attribute table is sorted by default by the first column. It is not!
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15870|
Open the attribute table for a shapefile layer. The arrow in the header of the first column will indicate that the table is sorted by that column. But it is not. It is sorted (I think) by FID. This is misleading.
Note: I thought there was a ticket with a request to enable displaying FID in the first column in the attribute table. That would fix this problem, but I can't find any such ticket now.
#2 Updated by Sebastian Dietrich almost 5 years ago
This appears to be a bug in Qt. When new data is shown in a table that was sorted before, the new data is not sorted but the sort indicator remains. In QGIS sorting is enabled before the actual data is filled in, so this bug applies.
See PR 2493 for a workaround solution.