Page MenuHomePhabricator

Semantic Forms should use Defaultsort in dropdown
Closed, ResolvedPublicFeature

Description

Author: dasch

Description:
I think the values in the dropdown list should be sorted by defaultsort


Version: master
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:47 AM
bzimport set Reference to bz38884.

pawanseerwani+bugzilla wrote:

Hi, I am willing to work on this bug. But I din't get the context of it. Does it refer to the dropdown in the Special:CreateTemplate? Or Something else?

Pawan - that's great! No, it's the "dropdown" input type within forms.

pawanseerwani+bugzilla wrote:

I just tried {{{field|Book|input type=dropdown|values from category=Books}}}in a form and the results obtained in dropdown were sorted alphabetically.

I think this bug can be closed.(Unless the reporter of the bug meant something else?)

Is there a way to add an ASC / DESC option to field|values from category? I have a long list for users to select from and it is almost always the last item when the dropdown is ASC order.

@Brilligtove - unfortunately, no; but you can make it easier for your users by turning that input into a "combobox" instead of a dropdown, so that they can start typing the value that they want to choose.

Aklapper triaged this task as Low priority.Feb 4 2022, 10:51 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".
Bdijkstra renamed this task from Use Defaultsort in dropdown to Semantic Forms should use Defaultsort in dropdown.Aug 16 2022, 6:15 PM

Change 924462 had a related patch set uploaded (by Yaron Koren; author: Yaron Koren):

[mediawiki/extensions/PageForms@master] Remove value sorting from disambiguateLabels()

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

Change 924462 merged by jenkins-bot:

[mediawiki/extensions/PageForms@master] Remove value sorting from disambiguateLabels()

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

Yaron_Koren claimed this task.

I don't know if this has actually been a bug for the full 11 years of this bug report's existence, but it was indeed a bug now, at least for "values from category", and I believe this patch fixed the problem. I am happy to finally close this!