ZenphotoCMS Forum
ascending file order - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: ascending file order (/thread-3100.html)



ascending file order - george2 - 2008-06-16

i opened this ticket, but don't know what file to look for in ordering the files - any ideas?

http://www.zenphoto.org/trac/ticket/573




ascending file order - acrylian - 2008-06-16

I guess that would be class-album.php but I actually don't know. Can't you just rename the files...?




ascending file order - george2 - 2008-06-16

i could, but that's not fixing the bug!




ascending file order - acrylian - 2008-06-16

I am not familiar with those code parts, but we will look at that.




ascending file order - sbillard - 2008-06-17

Sorry this is a proper alphabetic sort. If you really want 001, 010, 011..., then you should use those strings when you define the image.




ascending file order - jlang - 2008-06-17

I imagine there are too many possible ways to name files/directories each leading to different "best" sort orders to add anything like this to the standard distribution, although possibly there might be space for a "name, sorted numerically" checkbox/list item.

If you want to DIY for your particular naming/numbering scheme, a standard way to order alphanumeric fields numerically is to use "ORDER BY CAST(name AS UNSIGNED) ASC" in the sql where name and UNSIGNED etc are set appropriately.




ascending file order - macalter - 2008-06-24

I smile as george2 touched upon a peeve of mine, the alphanumeric ordering. It's not exclusive to ZP, that I know. It's hard to catch because my directories show the files in "perfect" numeric order. Ended up renaming ALL my files to add zeros to overcome the problem.