Is there any guarantee that the array of filenames returned from a glob (e.g. <*>
) will be sorted?
I can't find that sorting is mentioned one way or the other in the documentation, but it seems to be the case in every directory I've tried it on.
I'm talking about using this syntax:
@files = <*>;
If I need the files to be sorted, would the below be redundant?
@files = sort(<*>);