Skip to content

Commit

Permalink
Sort directory files alphabetically in Lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Nov 28, 2023
1 parent 4fa1315 commit 2987d4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vdmj/src/main/java/com/fujitsu/vdmj/plugins/Lifecycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ protected void findFiles()

if (file.isDirectory())
{
for (File subfile: file.listFiles(Settings.dialect.getFilter()))
File[] list = file.listFiles(Settings.dialect.getFilter());
Arrays.sort(list); // Predictable order

for (File subfile: list)
{
if (subfile.isFile())
{
Expand Down

0 comments on commit 2987d4a

Please sign in to comment.