リスト変数lis_Pathを画像ファイル名でソートしたい

こんにちは
UiPath Studio 2025.0.176STS Community editionのユーザーです。

指定フォルダに下記3個の画像ファイルがあり、

C:\XXX\INPUT\pear.png
C:\XXX\INPUT\apple.png
C:\XXX\INPUT\banana.png

下記のコードで画像のファイルパスをリスト変数lis_Pathに取得します。

lis_Path=System.IO.Directory.GetFiles(str_InputFolderPath).ToList()

リスト変数lis_Pathを画像ファイル名でソートするにはどうすれば良いでしょうか?

Namaste @gorby try this in assign activity

list_Path = lis_Path.OrderBy(Function(f) System.IO.Path.GetFileName(f)).ToList()

Cheers to your Lord Rama who brings light against the dark

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.