Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading in alphabetical order

 
Mike Brooks
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey

This is probably a stupid question, but is there any way that I can read in the files in a directary in alphabetical order. This would really help as right now when i read them in they come in in a random order which is not very nice in a display.

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can sort them after reading:
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you prefer folders before files, it's also not that hard. Just use a Comparator:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!