Skip to content

Dataset File Listing: Sort Order for Newest/Oldest is backwards #10742

@shlake

Description

@shlake

What steps does it take to reproduce the issue?
On a dataset file listing, click "Sort -> Newest"
The resulting order is oldest first.

On a dataset file listing, click "Sort -> Oldest"
the resulting order is newest first.

  • When does this issue occur?
    On the Dataset file listing section

  • To whom does it occur (all users, curators, superusers)?
    All Users

  • What did you expect to happen?
    Newest should be sorted "descending" (desc), but Oldest is sorted that way

Which version of Dataverse are you using?
V6.2

Happens on my local V6.2 dataverse instance as well as on Harvard's (V6.2):
Example, This dataset: https://doi.org/10.7910/DVN/KFVIIH

This is the URL that is displayed when "Oldest" sort is selected - notice "fileSortOrder=desc"

https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/KFVIIH&version=&q=&fileTypeGroupFacet=&fileAccess=&fileSortField=date&fileSortOrder=desc&tagPresort=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY25 Sprint 9FY25 Sprint 9 (2024-10-23 - 2024-11-06)Size: 0.5A percentage of a sprint. 0.35 hoursType: Buga defect

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions