[ckan-dev] sort facets

Stefan Oderbolz stefan.oderbolz at liip.ch
Mon Dec 5 12:59:21 UTC 2016


Hi Hilde,

the sorting is done using JavaScript, you can find the code in the CKAN
theme of GSA here:
https://github.com/GSA/ckanext-datagovtheme/blob/ff267d77fcde6d9c0b51044b26d9a000ba4fe8ab/ckanext/datagovtheme/fanstatic_library/scripts/sorting.js

- Stefan

On Fri, Dec 2, 2016 at 4:21 PM, Hildegard Gerlach <
hildegard.gerlach at jrc.ec.europa.eu> wrote:

> Dear all,
> I found an interesting feature I would like to implement.
>
> the possibility of having the choice to sort the facet lists either by
> number of occurrences  or alphabetically like done here:
>
> https://catalog.data.gov/dataset
>
> Any idea where I need to change what ?
> I had a look at https://github.com/GSA/ckan/tree/release-datagov/ckan ,
> but I don't know exactly whre to look.
>
> Thanks
>
> Hilde
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



-- 
Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161205/a8230132/attachment-0003.html>


More information about the ckan-dev mailing list