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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -