My problem: Pictures from a web camera is fed into my server- they all start
with "camera" and are numbered 1-2048. I want them to be displayed 1 - 2 ..
2048 .. and to to that, I need a numeric sort (-n). Alfanumeric sort gives 1
- 10 - 1000 -1001 ,,,
Please help ..
Offline
Edit your local config file (with LocalFiles Editor plugin) and insert:
$conf['order_by'] = ' ORDER BY LENGTH(file), file ASC';
$conf['order_by_inside_category'] = $conf['order_by'];
Offline
P@t wrote:
ORDER BY LENGTH(file), file ASC
Very smart!
Offline
Is this correct for more latest piwigo, such as 2.7.1 ?
$conf['order_by_custom'] = ' ORDER BY LENGTH(file), file ASC';
$conf['order_by_inside_category'] = $conf['order_by'];
Offline