Hi,
How to sort files in folder in order of last 5 characters of filename? I'm looping through files in folder and getting last 5 characters of filename but I couldn't find a solution for sorting. Please suggest.
TIA
Hi,
How to sort files in folder in order of last 5 characters of filename? I'm looping through files in folder and getting last 5 characters of filename but I couldn't find a solution for sorting. Please suggest.
TIA
Best answer by Marc Mueller
Hi
here is the final version for you… 😁
Step 1:
Use the Python code from
Step 2:
Extract text between [ and ] from Python output (see L5 on screenshot)
Step 3:
Split string with delimiter “,” into list variable. (see L6 on screenshot)
Step 4:
Loop through your sorted list of filenames… 😎 (see L7 on screenshot)
What do you think
Cheers
Marc
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.