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:
commit
82e76d9872
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user