Author: dasch
Description:
I think the values in the dropdown list should be sorted by defaultsort
Version: master
Severity: enhancement
Author: dasch
Description:
I think the values in the dropdown list should be sorted by defaultsort
Version: master
Severity: enhancement
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Remove value sorting from disambiguateLabels() | mediawiki/extensions/PageForms | master | +0 -1 |
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: The component is "SemanticForms". See https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Special_pages for more info
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.
Change 924462 had a related patch set uploaded (by Yaron Koren; author: Yaron Koren):
[mediawiki/extensions/PageForms@master] Remove value sorting from disambiguateLabels()
Change 924462 merged by jenkins-bot:
[mediawiki/extensions/PageForms@master] Remove value sorting from disambiguateLabels()
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!