mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 11:40: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 dan200.computercraft.api.filesystem.IWritableMount;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.charset.Charset;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@ -441,6 +440,7 @@ public class FileSystem
|
|||||||
// Return list
|
// Return list
|
||||||
String[] array = new String[ list.size() ];
|
String[] array = new String[ list.size() ];
|
||||||
list.toArray(array);
|
list.toArray(array);
|
||||||
|
Arrays.sort( array );
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user