ietf-tools / datatracker

The day-to-day front-end to the IETF database for people who work on IETF standards.
https://datatracker.ietf.org
BSD 3-Clause "New" or "Revised" License
624 stars 392 forks source link

Sorting RFCs by date in personal profiles sorts by month name alphabetically #5566

Open Susko3 opened 1 year ago

Susko3 commented 1 year ago

Describe the issue

Currently, sorting published RFCs by the Date field in profile pages (those starting with https://datatracker.ietf.org/person) will sort the dates in non-chronological order -- alphabetically by month name. I would expect the dates to be sorted in usual, chronological order: by year, month and day.

The workaround is to sort by the RFC number as that has the same effect as sorting by date.

Example: https://datatracker.ietf.org/person/Robert%20T.%20Braden

Ascending Descending
image image

Code of Conduct

cabo commented 1 year ago

Sorting by rfc number has the occasional anomaly, but is usually close enough, e.g.:

https://datatracker.ietf.org/person/Carsten%20Bormann Rfc9254

aj-stein-nist commented 11 months ago

This may be hacky, but is there a reason we cannot make the pubdate representation in the view match others and be Y-m-d instead of b Y so it sorts correctly? All the other dates are formatted that way in the template from a casual skim. So, on that note:

  1. Is that an acceptable fix or too simple and we want to maintain the Mon YYYY style? If so, that's ok. I am very new here but wanted to get my hands dirty.
  2. If 1 is acceptable, should I or must I commit additions or changes to front-end tests to present it for review?

In any event, thanks for the great tools. I am new to IETF and they make me love engaging and contributing on the standards, I thought it may be time to give back in a small way. :-)

rjsparks commented 11 months ago

Thanks for the PR at #6851 - Adding a pointer here so others can follow the discussion there.