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 backA B C D EBut if you then delete B you will getA C D EBut then if you add a new file F you will getA F C D EIt is best to generally assume it will be a random order.
Article ID: W14108Filename: Searcher Sort Order.txt