[ckan-dev] Sorting bug?

Koebrick, Andrew (MNIT) andrew.koebrick at state.mn.us
Tue Dec 23 20:00:33 UTC 2014


Ah, that does make sense.  Thank you for the explanation.  Now to figure out how to override the existing templates to make that the default behavior…  I may be back to the list for assistance if I can’t figure it out myself.

From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of Matt Leduc
Sent: Tuesday, December 23, 2014 12:58 PM
To: CKAN Development Discussions
Subject: Re: [ckan-dev] Sorting bug?

Hi Andrew,

The "name" referred to here is the dataset "name", not the title.

When sorting in ascending order, the first dataset is 'atmos-1961-1990-mn-temp-average', while in descending order it's 'water-wild-and-scenic-rec-rivers'.

It can be sorted by title_string if you'd rather sort it by the title, for example: https://gisdata.mn.gov/organization/us-mn-state-dnr?q=&sort=title_string+asc

Matt

On Tue, Dec 23, 2014 at 12:00 PM, Koebrick, Andrew (MNIT) <andrew.koebrick at state.mn.us<mailto:andrew.koebrick at state.mn.us>> wrote:
I am seeing odd behavior on our (and the demo) instance of CKAN.  When looking at the list of full datasets, the user can sort by Name Ascending and Name Descending, and it seems to work as expected.  However, if the user goes to Organizations first, then clicks on an organization, and then tries the same sort, there appears to be no logic to how they are displayed.  You can see this at:
https://gisdata.mn.gov/organization/us-mn-state-dnr?q=&sort=name+desc
vs
https://gisdata.mn.gov/organization/us-mn-state-dnr?q=&sort=name+asc

Is this a bug, or am I misunderstanding what is supposed to be happening?

Andrew Koebrick
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141223/09d184dc/attachment-0003.html>


More information about the ckan-dev mailing list