open-city / councilmatic

DEPRECATED, replaced by https://github.com/datamade/chi-councilmatic
16 stars 9 forks source link

Search result order #20

Closed fgregg closed 11 years ago

fgregg commented 11 years ago

For searches that are do not have keyword, return results in order of recency.

These searches include legislation type, sponsor, status, controlling body,

For example... http://councilmatic.opencityapps.org/search/?q=&file_types=Order&file_types=Appointment&file_types=Communication&file_types=Executive+Order&file_types=Report&file_types=Ordinance&file_types=Claim&file_types=Oath+of+Office

fgregg commented 11 years ago

Most recent legislation should be first.

derekeder commented 11 years ago

Does most recent mean intro_date or final_date? final_date is sometimes null, so that would place legislation that is still pending at the bottom. The site currently gets around this by sorting by key.

On Tue, May 7, 2013 at 7:35 AM, Forest Gregg notifications@github.comwrote:

Most recent legislation should be first.

— Reply to this email directly or view it on GitHubhttps://github.com/open-city/councilmatic/issues/20#issuecomment-17536985 .

Derek Eder @derekeder https://twitter.com/#!/derekeder derekeder.com derek.eder@gmail.com

derekeder commented 11 years ago

Ah wait, this looked to be something with the SearchQuerySet order_by. I think its fixed now.