EnglishNick wrote:
All the pictures I have start with the same words, however there is a number at the end. For example: low_res1, low_res2, low_res3, etc. Is there any easy way to get these to appear starting at 1 rather than at the end?
Nevermind.... I was stupid and didn't read the last post.
<?php
$conf['order_by'] = " order by UPPER(file) ASC";
$conf['order_by_inside_category']=$conf['order_by'];
?>
All the pictures I have start with the same words, however there is a number at the end. For example: low_res1, low_res2, low_res3, etc. Is there any easy way to get these to appear starting at 1 rather than at the end?
<?php
$conf['order_by'] = " order by UPPER(file) ASC";
$conf['order_by_inside_category']=$conf['order_by'];
?>
this did the trick...the one with '\'utf8_general_ci\' ASC' messed up the mysql query.
thanks for the help. All I have left to do is reassociate 3500 images!
Denise
normally, only that code should work (remove the last one which is overwriting the previous )
<?php $conf['order_by_inside_category']=$conf['order_by']; $conf['order_by'] = " order by UPPER(file) COLLATE \'utf8_general_ci\' ASC"; ?>
Also you can check the order configuration of each album in order to see if it's set as "default"
Unfortunately, I have to do some major rebuilding (backups were corrupted) and I'm having problems with this same issue...here is what I have in my local config file - what am I missing?
<?php
$conf['order_by_inside_category']=$conf['order_by'];
$conf['order_by'] = " order by UPPER(file) COLLATE \'utf8_general_ci\' ASC";
$conf['order_by'] = " order by UPPER(file) ASC";
?>
Thanks!
I will wait for the next release in this case.
Thanks a million!
I suggest you to test the 2.3 beta : it's in !
Would it not be better, safer and easier to have an extra configuration option in the configuration --> options section?
I would then have the following possible options and a few columns, the first one.
The first column will show the option, the second will show the level in a dropdown menu (level 1 will be ordered first etc), and the third column will show ASC or DESC (dropdown menu):
This ti will look like
Order based on:
Date | ASC or DESC | level
Filename | ASC or DESC | level
File added | ASC or DESC | level
etc
Thanks - it's now working!
It's normal : first the numbers, then you have the capital letters ordered correctly and then the others.
So use this thread to order as you wish :
$conf['order_by'] = " order by UPPER(file) COLLATE \'utf8_general_ci\' ASC"; may be the better solution
ps : don't forget $conf['order_by_inside_category']=$conf['order_by']
yplady wrote:
If anyone is curious to take a look...there are five images beginning with Africa - but only one shows alphabetically by file name
http://hermesscarf.com/piwigo/index.php?/category/home
You can see them in the Geography subfolder.
I guess there's not an option to sort by title as set within Piwigo?
the category is private
btw you seems to have trouble with hr_os_xl
ps : your link is wrong but the album Geography is ok ^^
ps² : if you're french you can go to the french forum
If anyone is curious to take a look...there are five images beginning with Africa - but only one shows alphabetically by file name
http://hermesscarf.com/piwigo/index.php?/category/home
You can see them in the Geography subfolder.
I guess there's not an option to sort by title as set within Piwigo?
Or better (at performance level):
$conf['order_by'] = ' ORDER BY file COLLATE \'utf8_general_ci\' ASC';
flop25 wrote:
it's case sensitive
You can sort by filename with insensitive case:
$conf['order_by'] = " order by UPPER(file) ASC";
flop25 wrote:
We investigate .... [Bugtracker] bug 2270
there is in fact no problem. this is how works the alphabetical order :
Aurora_screenshot.jpg
BSD_013_TechnoDream.jpg
BUD_metal_work_03.jpg
BeHappyDamnit.jpg
Beyond_Knowledge_V1.jpg
BlueOrb.jpg Blue_Christmas.jpg
BoXXiCelli1024x768.jpg
Celestial_Dragons.jpg
Christmas_Balls.jpg
it's case sensitive