piratical / Madeline_2.0_PDE

The Madeline 2.0 Pedigree Drawing Engine (PDE) is a pedigree drawing program designed to handle large and complex pedigrees with an emphasis on readability and aesthetics. The program was designed primarily for human pedigrees.
GNU General Public License v2.0
19 stars 18 forks source link

Sorting and rendering affected field by values, not alphabetical order #49

Closed jiunyanding closed 2 years ago

jiunyanding commented 2 years ago

Hi Ed,

When I use Madeline 2 to process my data, I found one affected field in the output was not sorted by the values but by alphabetical order. It looks like:

affected

Is there anyway can force it to be ordered by value?

Thank you!

piratical commented 2 years ago

Hi!

A quick solution is to prefix the lower-value numbers with a 0. O you would have "0500" instead of "500". This will make the alphabetic sort the same as the numeric value sort.

currently there is no other way I can think of, as the labels are always sorted alphabetically.

I hope this suggestion helps!

Best Wishes -- Ed Trager

El El vie, feb. 18, 2022 a la(s) 2:02 a.m., jiunyanding < @.***> escribió:

Hi Ed,

When I use Madeline 2 to process my data, I found one affected field in the output was not sorted by the values but by alphabetical order. It looks like:

[image: affected] https://user-images.githubusercontent.com/44456360/154633528-f098d6dc-2214-488e-ae5f-2916b779ccbf.png

Is there anyway can force it to be ordered by value?

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/piratical/Madeline_2.0_PDE/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADPQPTAEEUR6EZDJFYMV4VDU3XVJXANCNFSM5OW7FNRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

jiunyanding commented 2 years ago

Dear Ed,

Thanks a lot for your kindly reply! It works now.

Best regards

Jiun-Yan Ding