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

Sort the link list alphabetically #73

Open
ParoTheParrot opened this issue Dec 10, 2014 · 5 comments
Open

Sort the link list alphabetically #73

ParoTheParrot opened this issue Dec 10, 2014 · 5 comments
Labels
Milestone

Comments

@ParoTheParrot
Copy link

How is it possible to adjust the sorting? I would like to sort alphabetical instead of according to the modification date.
See: sebsauvage#210

@nodiscc
Copy link
Member

nodiscc commented Dec 10, 2014

Copying comments from sebsauvage#210 here:

I think you have to change krsort($filtered) to uasort($filtered, 'strcasecmp') in index.php. Do a backup! Does this work?

this works - thanks! BUT only with any searches. the pure listing is still sorted according to the date.

Whether we add this as an option is debatable (I'd rather not add it). But if someone is able to help, this could be documented under the Misc hacks section in the wiki.

@ParoTheParrot
Copy link
Author

it's a bit fuzzy - does not work properly 👎

@nodiscc nodiscc changed the title Sort the URL list Sort the link list alphabetically Dec 19, 2014
@nodiscc
Copy link
Member

nodiscc commented Feb 17, 2015

Closing this as it has not been requested/updated by anyone in a long time. Feel free to reopen if you have more info, or add your question in the General discussion thread.

@Manja-S
Copy link

Manja-S commented Aug 22, 2019

I'd like to add my vote to this request. Ideally I would like to be able to switch easily between alphabetical and date-based sorting in any screen (e.g. list filtered by tags) that shows links.

@ArthurHoaro
Copy link
Member

@Manja-S said in #1289

An alphabetical list gives me the possibility of a quick scan/overview of all of the links I've got (or I've got with a specific tag). To me searching/filtering doesn't give the same overview (and possibility for serendipity) that scanning a (sorted) list gives me.
Apart from that it gives me an opportunity to easily scroll to a link instead of having to click and type (and think about the right term) to apply a filter.

Even though I'm still not really convinced, I suppose it depends on how users use Shaarli, and this has been requested a few times now, so we should add it.

I'm not sure how it should be done yet, because links are currently sorted when the datastore is saved.

@ArthurHoaro ArthurHoaro added this to the 0.12.0 milestone Aug 24, 2019
@nodiscc nodiscc modified the milestones: 0.13.0, 0.14.0 Nov 22, 2023
@nodiscc nodiscc modified the milestones: 0.14.0, 0.15.0 Nov 15, 2024
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

4 participants