Glob array by number value

If you have sub-directories named 1 , 3 , 5 , 10

they will be arranged like this : 10, 1, 3, 5

To get them displaying like this 1, 3, 5, 10 use the following code

Posted in Arrays.

Leave a Reply

Your email address will not be published. Required fields are marked *