New sort plugin, including some optional sort modifications
This commit is contained in:
parent
3c7aac6588
commit
4f4b0a2dd9
1 changed files with 11 additions and 0 deletions
11
plugins/_disabled/sort/before_content.php
Normal file
11
plugins/_disabled/sort/before_content.php
Normal 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"]);') );
|
Loading…
Reference in a new issue