so what is the mac looking at then when it sees the folder

is it looking at the size of the file , the date ,the length of the filename or when it was modified for example
i just can't work it out
i dont understand tmaps
the windows way was great you could look at a directory , load into an array like stands$[11]
then call them back in a loop
for example
Local namestd$[11]
Local folder$
Local jl
'get data from folder
' Define what folder To start with ...
folder$="\Applications\Specdrum\Kits\Standard"
Local myDir:Byte Ptr = ReadDir(folder$)
If myDir=0 Then RuntimeError folder+" does not exist!"
Global file:String=NextFile$(myDir)
While file
If Lower(ExtractExt(file))="wav"
namestd=namestd[..jl+1]
namestd$[jl]=file$
jl=jl+1
EndIf
file$=NextFile$(myDir)
Wend
CloseDir myDir
For Local i = 0 To 9
Print namestd$
Next
this works but its all jumbled
not in order
lee