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

Sorting by date added field #119

Open
rinjja opened this issue Apr 12, 2018 · 0 comments
Open

Sorting by date added field #119

rinjja opened this issue Apr 12, 2018 · 0 comments
Labels

Comments

@rinjja
Copy link

rinjja commented Apr 12, 2018

The sorting by Date Added appears to be sorting on the id field, not the actual date added field.

I'm sure for 99% of users, this is totally fine. In my case, I want to sort my exhibits by a specified date (each exhibit represents a different event and I want to list them chronologically). I'm doing a hacky thing and manually setting Date Added in the database to the event date. My events are listed in the proper descending order if I sort by Recent, but if I sort by Date Added it is sorting on id.

I've hacked in a fix (In ExhibitController, changed _getBrowseDefaultSort function so that the default case matches the recent case and except using 'a' instead of 'd'), so I'm good.

I don't think that this is ever an issue unless people are monkeying with Date Added in the database. Ideally it would be great to have more sorting options for exhibits, but if not, hopefully by at least posting this someone else will be saved from a lot of confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants