Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Date sorting bug in dialog.php version PHP 8  #734

@winr777

Description

@winr777

Hi,
I saw that with or without the parameter in the url "&sort_by=date" the files were not properly sorted by date.
So I modified the following line in dialog.php version PHP 8:

? $x['date'] <=> $y['date'] : $y['date'] <=> $x['date'];

by the lines

? $x['date'] < $y['date'] : $y['date'] >= $x['date'];

I think it should also be modified on the lines 904 "size" and lines 920 "extension" .

good day to all

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions