Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Resort Order #17

Closed
cnelson-pdx opened this issue Jan 24, 2022 · 2 comments
Closed

Feature Request: Resort Order #17

cnelson-pdx opened this issue Jan 24, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@cnelson-pdx
Copy link

Not finding a way to change the sort order from newest to oldest to oldest to newest.

Would be cool to see this either as an on the fly button in the webUI or something set in the config prior to thumbnail creation.

If I'm just missing something, my apologies.

@waschinski waschinski added enhancement New feature or request good first issue Good for newcomers labels Jan 25, 2022
@waschinski
Copy link
Owner

Thanks for suggesting this feature. Actually both ideas (pre-configuration and on-the-fly change) sound reasonable.

I quickly played around with some JavaScript for the on-the-fly change and it seems to work fine even with the lazy loading going on.

If you want to see how that could work, open your developer tools in your browser (F12) and paste this code to your console:

function reverseSorting() {
    var parent = document.getElementById('target');
    for (var i = 1; i < parent.childNodes.length; i++){
        parent.insertBefore(parent.childNodes[i], parent.firstChild);
    }
}

Then calling reverseSorting(); should change the sorting on the page.

@waschinski waschinski self-assigned this Jan 25, 2022
waschinski added a commit that referenced this issue Jan 28, 2022
@waschinski
Copy link
Owner

Check out the latest update. ;)

Docker images should also be updated soon.

pull bot referenced this issue in OrangeCatSleepless/photo-stream Mar 18, 2023
Former-commit-id: cf8501f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants