vb.net - add files to List(String) in certain order -


i added list of files in directory list(of string)(). need in putting these files in order. example if have files 1, 2, 3,4 in list, how can put files in let 4,2,1,3 order?

 dim aryfi fileinfo() = di.getfiles("*.pdf")  dim fi fileinfo   dim fileinput new list(of string)()   each fi in aryfi      fileinput.add(fi.name)  next 

dim fileinput new list(of string)  each fi fileinfo in di.getfiles("sup-wrt.pdf")     fileinput.add(fi.name) next each fi fileinfo in di.getfiles("invoice-*.pdf")     fileinput.add(fi.name) next each fi fileinfo in di.getfiles("po-*.pdf")     fileinput.add(fi.name) next 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - IIFE: var vs this - is there any difference? -

r - Grow a ffdf data frame on disk gradually -