Page MenuHomePhabricator

Allow sorting of the people lists (children, partners)
Closed, ResolvedPublicFeature

Description

I would like to able to change the index number of a person after their page has been created.

Use case: I have already created many pages in my wiki and children pages may have been created out of order. I cannot figure out how to edit the index number so that they are displayed in chronological order in query results.

Event Timeline

Samwilson subscribed.

I think they are currently ordered by page title.

But yes, ordering by birth date would be better! Or perhaps by description? Which could then be set to whatever is appropriate (generally starting with the year of birth).

But yes, ordering by birth date would be better! Or perhaps by description? Which could then be set to whatever is appropriate (generally starting with the year of birth).

Yes. Flexible would be great. Sometimes we don’t know the birthdates, but we know who was eldest, youngest, or the order they are listed in a will. So if we could edit the index in order to set the order or add it to a description somehow, that would be great.

Same with spouses, setting which was 1st, 2nd, etc.

Samwilson renamed this task from Change index number to Allow sorting of the people lists (children, partners).Aug 12 2025, 4:10 AM

I'd forgotten that siblings are already listed in description order, so it just remains to do the same for children.

Parents and partners are listed in alphabetical order. This seems like a bit of an oddity, and probably these should also be in description order.

I'd forgotten that siblings are already listed in description order, so it just remains to do the same for children.

I'm not clear on why we would want to use the description to set the order.

As an example, here's a list of children. The first I created manually, in order of birth. The second was created with the genealogy extension.

They are currently sorted using the index, displayed in parentheses. I have entered a description for two of them. If I wanted to sort them using the description, then I would enter 1, 2, 3, 4 at the beginning of the description? And it would be displayed here for all 4 children? I wouldn't want just the numbers 1 and 4 to be displayed after the two that don't currently have descriptions.

I would prefer to just be able to set the index myself so that they are sorted in the desired order. Or maybe I don't understand what you're suggesting.

Sorry, I wasn't being very clear! I just meant that there is some sorting in the system already, but that it's not consistent, and has never been thought about properly I think.

You're right, sorting by description is pretty odd!

How about something like this:

{{#genealogy: person | sort_index=3 }}

With each of the lists of people then being listed by sort_index.

How about something like this:

{{#genealogy: person | sort_index=3 }}

With each of the lists of people then being listed by sort_index.

Yes! I love it.

Change #1180090 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/Genealogy@master] Add new sort_index for people, and sort lists by it

https://gerrit.wikimedia.org/r/1180090

Change #1180090 merged by jenkins-bot:

[mediawiki/extensions/Genealogy@master] Add new sort_index for people, and sort lists by it

https://gerrit.wikimedia.org/r/1180090

Samwilson claimed this task.

Merged and released in 2.5.1.