Order by code

I'm currently using numbers as subalbums name (e.g. 001,002,010..) and the default order in this case is 001,010,011,...002 because 01x comes first than 002.

Is there a way to force the ordering by album name (trought code, under zp-core/functions.php sortMultiArray()) instead of adding each album under admin panel and specify a custom order?

Ii've got more than 900 albums..
Thanks

Comments

  • Are you sure you are describing your situation correctly? I'm pretty sure that sorting those filenames will give you 001, 002, 010, 011, ... (At least that is how it works when I do this.) Perhaps you really mean that you are using numbers withtout the leading zeros?

    Even without the leading zeros the the albums should be in order since we use a "natural" sort to sort them.
  • The situation that i've described is correct, look this image: http://img219.imageshack.us/img219/3913/39701635.png
  • Unfortuantely, in this case, a picture is worth next to nothing. It tells us nothing of the Zenphoto release, the sort you have selected, or the theme being used.

    What you are seeing/describing does not happen with current Zenphoto selecting the filename as the sort criteria. In fact, there is pretty much no way that order could come from the filenames with or without the "natural" sort that I described since the ascii sort would match the natural sort given the uniform length of the names.

    So, if you are really experiencing this your computer must be sadly broken as it cannot compare byte strings in a normal ascii sequence.
Sign In or Register to comment.