.net - Correct this LINQ instruction syntax -
i list files of directory , sort file extension: dim files list(of io.fileinfo) = get_files(directory, true, validextensions).orderby(function(x) x.extension).tolist how can add in same instruction parameter sort name content this?: x.name.tolower.contains("word") i've tried separate comma (yes, stupid): dim files list(of io.fileinfo) = get_files(directory, true, validextensions).orderby(function(x) x.extension, x.name.tolower.contains("word")).tolist update i've tried use @p.s.w.g solution not return desired result. but if make 2 lists separate desired sort in second list: dim files list(of io.fileinfo) = _ get_files(directory, true, validextensions).orderby(function(x) x.extension).tolist dim files2 list(of io.fileinfo) = _ files.orderby(function(x) x.name.tolower.contains("word")).tolist but want improve doing in first list. use thenby method: dim files list(of io.fileinfo) = _ get_files(directory, tru...