DigitalCommons / mykomap-monolith

A web application for mapping initiatives in the Solidarity Economy
0 stars 0 forks source link

[CWM] Sort search results alphabetically #89

Open ColmDC opened 3 days ago

ColmDC commented 3 days ago

Description There is currently no descernable order to the search results. Sort them alphabetically

Image

Acceptance Criteria All search results appear in alphabetical order.

rogup commented 2 days ago

This isn't trivial, so will have to wait until after Delhi.

Alphabetic sorting by name needs to happen before or during the generation of the BE data. We can't sort on the front-end since data is paginated and we don't have the full set of names. The server can't do it when loading the data, since sorting data would change the order of indexes, which then wouldn't match the item data files. And we can't do a sort before we search every set of search results, since this would take a lot of computation power and impact performance.

I think the best time to do the sorting is as part of the CSV generation, which is @wu-lee's realm of knowledge. Maybe just with a simple csv sort command line script.

ColmDC commented 2 days ago

Grand. Moved into backlog.