ios - Fetching documents sorted by date dynamically. To be used for lazy loading -


i know can sort files after have fetched using array of paths documents.

    nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes);      nsstring *documentsdirectory = [paths objectatindex:0];      _filepaths = [[nsfilemanager defaultmanager] subpathsofdirectoryatpath:documentsdirectory  error:nil];      //do sorting after file contents fetched 

what want know: possible fetch file paths sorted (e.g. date, or whatever attribute)? because don't want load files @ once perform sort on long list definite number of files use lazy loading.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -