Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attribute table row sorting doesn't work #57338

Open
2 tasks done
pigreco opened this issue May 3, 2024 · 2 comments
Open
2 tasks done

attribute table row sorting doesn't work #57338

pigreco opened this issue May 3, 2024 · 2 comments
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@pigreco
Copy link
Sponsor Contributor

pigreco commented May 3, 2024

What is the bug or the crash?

The sorting of the rows of the attribute table does not work if we use a geometric function as an expression (for example like $area)

Steps to reproduce the issue

  1. I load the Reg01012024_g_WGS84 layer in QGIS;
  2. I open the attributes table;
  3. I position the mouse on the COD_REG attribute header;
  4. right-click and select 'sort';
  5. in the window that opens, I activate it and type $area;
  6. I click OK
  7. nothing happens (even if you activate ascending sort in the window)
2024-05-03_20h25_14.mp4

Versions

OSGeo4W QGIS 3.34.6-Prizren

Versione di QGIS 3.34.6-Prizren
Revisione codice QGIS
623828f
Versione Qt 5.15.13
Versione Python 3.12.3
Versione GDAL/OGR 3.8.5
Versione PROJ 9.4.0
Versione database del Registro EPSG v11.004 (2024-02-24)
Versione GEOS 3.12.1-CAPI-1.18.1
Versione SQLite 3.45.1
Versione PDAL 2.6.3
Versione client PostgreSQL 16.2
Versione SpatiaLite 5.1.0
Versione QWT 6.2.0
Versione QScintilla2 2.14.1
Versione SO Windows 11 Version 2009

Plugins Python attivi
DataPlotly 4.1.0
eurostat_downloader 0.2.1
felt 2.0.1
kmltools 3.1.33
mapswipetool_plugin 1.2
nominatim_locator_filter 0.3.2
quick_map_services 0.19.34
valuetool 3.0.19
db_manager 0.1.20
grassprovider 2.12.99
MetaSearch 0.3.6
processing 2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

data for testing:

Reg01012023_g.zip

@pigreco pigreco added Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! labels May 3, 2024
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented May 3, 2024

I can confirm that the issue occurs on Windows using QGIS 3.34.6 or QGIS 3.36.2 and also using previous versions like QGIS 3.28 or QGIS 3.22.
The issue doesn't occur using a memory layer.

@ludovico85
Copy link

ludovico85 commented May 4, 2024

Same for me. Tested on Windows 11 and QGIS 3.34.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

3 participants