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

Sort by Date Modified (Feature Request) #101

Open
Wawsax opened this issue Jun 30, 2021 · 0 comments
Open

Sort by Date Modified (Feature Request) #101

Wawsax opened this issue Jun 30, 2021 · 0 comments

Comments

@Wawsax
Copy link

Wawsax commented Jun 30, 2021

Not being able to sort by (remote) date modified makes SeedSync really hard to use for me, as I'm not looking to mirror all my files. It's easier to just use the lftp CLI. So this issue is a feature request.

Tried looking to see how hard it would be to add this, but I'm not a coder and I couldn't get it to build with all the crazy multi-target docker stuff. I'd also be curious to know, would this even have worked?

Adding to src/angular/src/app/services/files/view-file-sort.service.ts:

  1. const ModifiedDescendingComparator: ViewFileComparator = (a: ViewFile, b: ViewFile): number => { return b.remote_modified_timestamp.localeCompare(a.remote_modified_timestamp); };
  2. } else if (this._sortMethod === ViewFileOptions.SortMethod.MOD_DESC) { this._viewFileService.setComparator(ModifiedDescendingComparator); this._logger.debug("Comparator set to: Mod Desc");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant