Skip to content

Commit

Permalink
STICKER-3 Sort asset directory listings by date so most recent versio…
Browse files Browse the repository at this point in the history
…ns will be used
  • Loading branch information
sebduggan committed Jun 17, 2024
1 parent a13f1d7 commit 0876671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sticker/util/Bundle.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ component {

if ( DirectoryExists( directory ) ) {
var filter = IsSimpleValue( arguments.match ) ? arguments.match : "*";
matches = DirectoryList( directory, true, "path", filter );
matches = DirectoryList( directory, true, "path", filter, "DateLastModified" );
for( var path in matches ){
var relativePath = Replace( Replace( path, rootDir, "" ), "\", "/", "all" );

Expand Down

0 comments on commit 0876671

Please sign in to comment.