New sort plugin, including some optional sort modifications

This commit is contained in:
Marc MAURICE 2013-08-18 12:17:47 +02:00
parent 3c7aac6588
commit 4f4b0a2dd9

View file

@ -0,0 +1,11 @@
<?php
# reverts the order of folders
# usefull if you have date named albums and you want the most recent first
$GLOBALS["folders"] = array_reverse($GLOBALS["folders"]);
# sort imageFiles by modification time instead of filename
# usefull if you have renammed camera photos
# http://stackoverflow.com/questions/2667065/sort-files-by-date-in-php
# http://fr.php.net/create_function
#usort( $GLOBALS["imageFiles"], create_function('$a,$b', 'return filemtime($a["file"]) > filemtime($b["file"]);') );