Kanka Gallery Alphabetical Sort

Sorts folders and images alphabetically in the Kanka Gallery, keeping folders first.

Autor
Salvatos
Instalaciones diarias
0
Instalaciones totales
6
Calificaciones
0 0 0
Versión
4
Creado
03/04/2023
Actualizado
15/12/2024
Tamaño
2.68 KB
Licencia
MIT
Funciona en

Sorts folders and images alphabetically in the Kanka Gallery, keeping folders first. (Normally, they are sorted by most recent change.)

Caveat: The Gallery displays 25 items at a time, and does not fetch its results from the database alphabetically, so this is a lot less convenient with larger folders (or numerous search results). When clicking "Load more", the new batch of results also need to be sorted by the script. Instead of merging them into the full set of results, the new batch is sorted separately and appended at the end of the previous batch, keeping the new results separate so you don't have to look through the whole set every time it changes. It also automatically scrolls you back up to the last result of the previous batch.

If there is demand to add something like a "Re-sort all" button, that could probably be done.


If my scripts are making your life easier, tips go a long way to help me make more. You can support me via Ko-fi (no account needed):

Support me on Ko-fi.com