Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.8k stars 821 forks source link

Observing list sorts lexicographically, not numerically #2265

Open ckuethe opened 2 years ago

ckuethe commented 2 years ago

Expected Behaviour

When I sort the observing list by catalog number or by magnitude, they should sort numerically

Actual Behaviour

Catalog and magnitude are sorted lexicographically, the way sort does, eg.

$ echo C1 C2 C5 C10 | fmt -1 | sort
C1
C10
C2
C5

Note that "C4" is sorted between "C31" and "C50" Screenshot_2022-02-11_16-58-36

Note the Magnitude column: `[1.2, 10.8, 10.9, 11.83, 3.44, ...] Screenshot_2022-02-11_16-59-15

Steps to reproduce

  1. Create an observing list
  2. Add some objects to the observing list
  3. Sort the observing list by magnitude or index number

System

Logfile

If possible, attach the logfile log.txt from your user data directory. Look into the Guide for its location.

github-actions[bot] commented 2 years ago

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

Jocelyn1109 commented 2 years ago

Hi @ckuethe thank you for your message. I will check and fix the problem.

Jocelyn

github-actions[bot] commented 2 years ago

Hello @ckuethe! Thank you for suggesting this enhancement.

alex-w commented 2 years ago

@ckuethe please check latest development snapshot