Page MenuHomePhabricator

New search option: Sort results by page name
Closed, ResolvedPublicFeature

Description

The search interface(s) offer sorting of the results by "Edit date", "creation date" and "Relevance".

Add the option to sort by page name.
Also, add the option to sort by page name within namespaces.

Event Timeline

Change #1184962 had a related patch set uploaded (by Tejashxv; author: Tejashxv):

[mediawiki/core@master] T403775: Add page name sorting options to search results

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

thiemowmde renamed this task from Advanced search — Sort results by page name to New search option: Sort results by page name.Sep 30 2025, 11:34 AM
thiemowmde removed a project: Advanced-Search.
thiemowmde updated the task description. (Show Details)

I'm afraid this is unrelated to the Advanced-Search UI but something that is fundamentally missing in CirrusSearch (relevant for the Wikimedia cluster) and MediaWiki-Search (relevant for 3rd party wikis). I edited this task accordingly.

Personally I don't think such an option would be very helpful for anyone. MediaWiki already gives us plenty of options to get alphabetic lists of page names, e.g. Special:PrefixIndex and such.

CirrusSearch may provide such sorting options via T40403. I believe that this ticket refers to the UI work required to happen when this capability is available from CirrusSearch, given that there is no such selector in Special:Search I have the impression that the intent of this ticket was to adapt Advanced-Search, @thiemowmde am I missing something?

@dcausse I'm not sure what the question is, sorry. Please feel free to close this as a duplicate of T40403 if you think it is one. Unless this is not implemented in CirrusSearch there is nothing we can do in the Advanced-Search codebase. An extra Advanced-Search ticket for something that's currently technically impossible is not useful.

An extra Advanced-Search ticket for something that's currently technically impossible is not useful.

Sure, I'll flag Advanced-Search whenever cirrus is ready to provide this option.

I'll flag Advanced-Search whenever cirrus is ready

Great, thanks a lot!

Change #1184962 abandoned by Tejashxv:

[mediawiki/core@master] Add page name sorting options to search results

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

We just deployed the required backend support to enable such sort options (title_natural_asc & title_natural_desc), re-adding the Advanced-Search tag.

Change #1223730 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/AdvancedSearch@master] Support cirrussearch's article title sort mode

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

Once the patch is merged, this should be announced in User-notice

It is now possible to sort search results alphabetically by page title. Under the "Advanced Search"-options of the search results choose Alphabetically from the "Sorting Order" options.

Change #1223730 merged by jenkins-bot:

[mediawiki/extensions/AdvancedSearch@master] Support cirrussearch's article title sort mode

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

@TheDJ How does this sound for Tech News:

Users can now sort search results alphabetically by page title. The update gives an additional option to finding pages more easily and quickly. Previously, results could be sorted by Edit date, Creation date, or Relevance. To use the new option, open 'Advanced Search' on the search results page and select 'Alphabetically' under 'Sorting Order'.

forgot that we still need to add the option to wgAdvancedSearchEnabledSortMethods. Didn't notice because I had an override in my LocalSettings.php

Change #1254815 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/AdvancedSearch@master] Add "title_natural_asc" to the available sort orders

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

Change #1254815 merged by jenkins-bot:

[mediawiki/extensions/AdvancedSearch@master] Add "title_natural_asc" to the available sort orders

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

Mentioned in SAL (#wikimedia-cloud) [2026-03-18T21:11:40Z] <dcausse> T403775: reindexing all wikis to enable new sorting options

TheDJ triaged this task as Low priority.
TheDJ added a subscriber: Tejashxv.

Late note, arriving from the news: lovely feature but it is odd that a basic setting like sorting is relegated to the "Advanced search", where the vast majority of users will never even look.

@JnpoJuwan Thanks for the feedback. I would like to understand better what you mean. Where else would you expect it? Maybe this is a misunderstanding? I just noticed that the feature probably didn't make it for last weeks rollout and will only become available on the Wikimedia wikis this Wednesday. Maybe that's where the confusion comes from?