WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

File Searcher
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Searcher Sort Order

Keywords:   sort 

Question:

What is the sort order we use for Searcher? (which handles are grabbed first and why?).

In looking at the list of files, their dates and sizes, I know it's not name, date, size, or attribute, using:

	hand=srchInit("C:\temp","*.*","","",16)


Answer:

No sort order whatsoever. They are in the order stored in the directory file on disk. If you NEVER delete a file, then will be stored in the order they were made. However is one is deleted, that slot will be used for the next file. e,g, 5 files A B C D and E made in that order. You will get back
	A
	B
	C
	D
	E
But if you then delete B you will get
	A C D E
But then if you add a new file F you will get
	A F C D E
It is best to generally assume it will be a random order.
Article ID:   W14108
Filename:   Searcher Sort Order.txt
File Created: 1999:05:03:14:21:42
Last Updated: 1999:05:03:14:21:42