Page MenuHomePhabricator

Feature request: Category reverse sort by date
Open, LowestPublicFeature

Description

Author: david

Description:
The Category function is not translating well into Wikinews. The biggest problem
with categories is that we cannot sort by date to make the newest stories appear
on top. Compare http://en.wikinews.org/wiki/Category:Culture_and_entertainment
with http://en.wikinews.org/wiki/Category:Culture_and_entertainment_test.

In essence, after 50 staries are written on a given topic, a category becomes
virtually useless since alphabetic sort yileds results where it is impossible to
tell the difference between a story written last year or last night.

And with a [[Category:Topic|YYYMMDD]] sort, the OLDEST appears on top - which
makes the task of finding the newest story a scroll hunt for the reader.


Version: unspecified
Severity: enhancement
URL: http://en.wikinews.org/wiki/Category:Culture_and_entertainment_test

Details

Reference
bz1289
TitleReferenceAuthorSource BranchDest Branch
Bump to eventutilities 0.12.0repos/data-engineering/mediawiki-event-enrichment!61ottoeventutillities-versionmain
Bump to eventutilities 0.11.0repos/data-engineering/mediawiki-event-enrichment!60ottoeventutillities-versionmain
Bump to eventutilities 0.10.0repos/data-engineering/mediawiki-event-enrichment!59ottoeventutillities-versionmain
EventProcessFunction - use metric group key for python memory metrics toorepos/data-engineering/eventutilities-python!57ottometricsmain
Upgrade to eventutilities 0.9.0repos/data-engineering/mediawiki-event-enrichment!58ottoeventutillities-versionmain
EventProcessFunction - use metric group keyrepos/data-engineering/eventutilities-python!56ottometricsmain
Metrics improvementsrepos/data-engineering/eventutilities-python!33ottoT328925_metricsmain
Emit event counts, invocation time, and python process memory usage for process functionrepos/data-engineering/eventutilities-python!31ottoT328925_metricsmain
Improve metric naming and labels with job and operator namesrepos/data-engineering/eventutilities-python!30ottojob_namemain
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:10 PM
bzimport set Reference to bz1289.
bzimport added a subscriber: Unknown Object (MLST).

richholton wrote:

(In reply to comment #0)

The Category function is not translating well into Wikinews. The biggest problem
with categories is that we cannot sort by date to make the newest stories appear
on top. Compare http://en.wikinews.org/wiki/Category:Culture_and_entertainment
with http://en.wikinews.org/wiki/Category:Culture_and_entertainment_test.

In essence, after 50 staries are written on a given topic, a category becomes
virtually useless since alphabetic sort yileds results where it is impossible to
tell the difference between a story written last year or last night.

And with a [[Category:Topic|YYYMMDD]] sort, the OLDEST appears on top - which
makes the task of finding the newest story a scroll hunt for the reader.

Could you describe what you'd like the category page to look like for this?
Would the date of the article be included in the category page listing? Would
the date in question be the last modified date of the article, or something that
is included in the sort key? You want the names sorted ascending alphabetically,
but then descending by date? Or would some tag on the category page indicating a
descending sort be sufficient?

beland wrote:

This would be useful for maintainance categories where we are using them as FIFO
queues. In this case, the date should be taken as the point at which the
category tag was added to the article. Though most of these categories actually
use templates to do that, so detecting that is slightly more complex than you
might think. But certainly doable.

I think this should be the date the category was added to the article. As for
headings I would see this as the date. (December 21, 2005) or possibly the month
and year (December, 2005). One posibility Is to do it somewhat similiar to the
experimental date techinique for the google cat (
http://en.wikinews.org/wiki/Google/date#Date-order ). I think a little link
should be at the (next 200) line where it could say (sort by date)

evengstr wrote:

I actually need to be able to list it by a specified date, not by the date the
entry is entered into the site, as I am creating a timeline for my RPG group.
It's a similar problem with the categories, I need to be able to have dates
(preferably the year) for the headings, rather than a single number or letter
http://www.ucip.org/beta/index.php/Category:Timeline

  • Bug 5561 has been marked as a duplicate of this bug. ***
  • Bug 14287 has been marked as a duplicate of this bug. ***

Wikinews seems to have solved the problem with RSS feedbs and templates, which looks like the right approach for this use case.

https://en.wikinews.org/wiki/Category:Culture_and_entertainment

(In reply to Jaeneva from comment #4)

I actually need to be able to list it by a specified date, not by the date
the entry is entered into the site, as I am creating a timeline for my RPG
group.
It's a similar problem with the categories, I need to be able to have dates
(preferably the year) for the headings, rather than a single number or letter
http://www.ucip.org/beta/index.php/Category:Timeline

Maybe categories alone are not a tool for this kind of job? A category cannot dig into the content of an article to find a specific date field. This is a work for templates.

Also failing all else, you could probably use semantic mediawiki for your purposes.

Considering that the original problem is solved (the Wikinews use case), that other solutions exist to solve this problem, and that including this feature in MediaWiki Core seems unlikely, can we close this report as wontfix?

(In reply to Quim Gil from comment #10)

Considering that the original problem is solved (the Wikinews use case),
that other solutions exist to solve this problem, and that including this
feature in MediaWiki Core seems unlikely, can we close this report as
wontfix?

Oh, I totally thought comment 4 was the original bug when making my last comment. I'm actually not sure that the original bug is that unlikely to be included in MediaWiki core. People on enwikipedia often say things like they wish that maintenance categories could be sorted by date. If liangent's category sorting branch ever gets merged, I think it would make sense to also add this feature to his/her code. After all, at that point we would both have an interface for it, as well as the database schema support for it. I think this is a valid low-priority enhancement request.

Steinsplitter set Security to None.
Steinsplitter moved this task from Incoming to Backlog on the Commons board.

Being able to sort a category by date would be helpful for Commons. This would help contributors find newly added files. Either or both "date added to this category" and "date put in this category" would be helpful there.

I agree with this feature request. In https://commons.wikimedia.org/wiki/Category:Construction_of_U.S._Bank_Stadium, I would like to view the stadium's construction history chronologically. Sorting media in this category by date of creation would fulfill this need. I'd rather not go to the effort of creating a new gallery page and ordering things manually.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM
Aklapper removed a subscriber: wikibugs-l-list.