You can copy the ReadDir source code and customize it. Anyway, I think
the os.(*File).ReadDir call is hugely slower than the Sort call and
your way of doing doesn't look so bad.
Rémy.
It's a utility. It's not the only way to read a directory.
If it isn't useful in your program, don't use it.
Russ