Member
Member
george2   2008-06-16, 07:55
#1

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

Administrator
Administrator
acrylian   2008-06-16, 08:36
#2

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

Member
Member
george2   2008-06-16, 12:20
#3

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

Administrator
Administrator
acrylian   2008-06-16, 12:50
#4

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

Member
Member
sbillard   2008-06-17, 01:05
#5

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.

Member
Member
jlang   2008-06-17, 17:01
#6

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.

Member
Member
macalter   2008-06-24, 19:28
#7

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.