1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00

Merge pull request #184 from SquidDev-CC/hotfix/sort-list

Sort the result of FileSystem.list
This commit is contained in:
Daniel Ratcliffe 2017-05-04 21:06:26 +01:00 committed by GitHub
commit 82e76d9872

View File

@ -10,7 +10,6 @@ import dan200.computercraft.api.filesystem.IMount;
import dan200.computercraft.api.filesystem.IWritableMount;
import java.io.*;
import java.nio.charset.Charset;
import java.util.*;
import java.util.regex.Pattern;
@ -441,6 +440,7 @@ public class FileSystem
// Return list
String[] array = new String[ list.size() ];
list.toArray(array);
Arrays.sort( array );
return array;
}