Bug report #14671

Atlas not sorting properly

Added by Spencer Gardner over 4 years ago. Updated over 4 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:2.14.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22635

Description

I'm using 2.14.0 on a Windows 10 machine.

I have created an atlas map with features numbered 1-6 using field "panel_nbr". I have set the sort in Atlas configuration to the same field (panel_nbr). When I preview the atlas maps they are given in apparently random order. It's not sorted properly, nor is the order given based on which feature was created first.

Associated revisions

Revision 647f3221
Added by Nyall Dawson over 4 years ago

Consolidate all qvariant sort methods to use qgsVariantLessThan,
make sure qgsVariantLessThan incorporates all functionality from
other duplicate implementations, and add tests

(fixes #14671)

Revision e657f611
Added by Nyall Dawson over 4 years ago

Consolidate all qvariant sort methods to use qgsVariantLessThan,
make sure qgsVariantLessThan incorporates all functionality from
other duplicate implementations, and add tests

(fixes #14671)

(cherry-picked from 647f32)

History

#1 Updated by Nyall Dawson over 4 years ago

  • Status changed from Open to Feedback

Can you please confirm the field type for the "panel_nbr" field?

#2 Updated by Spencer Gardner over 4 years ago

Field type is integer

#3 Updated by Spencer Gardner over 4 years ago

I should also add that I just upgraded to 2.14.1 and the issue still occurs.

#4 Updated by Giovanni Manghi over 4 years ago

  • Status changed from Feedback to Open

#5 Updated by Olivier ATHIMON over 4 years ago

I have tried with a String Field, and it run.

But i have the same problem with 2.14.1 on a Windows 7 machine for a Integer64 Field... <=> In my memories, it was OK with previous versions of QGIS 2.12...

#6 Updated by Nyall Dawson over 4 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF