SORTING FILES

Hi…
I m trying to sort files in the folder. I downloaded few sample codes from forum and modified accordingly. When I debug the same and check, it is giving expected output. But nothing is getting sorted in the actual folder. Wondering what could be the reason. Don’t know where I am going wrong.
SortFiles.zip (7.5 KB)

Attaching the workflows for your reference. Appreciate ur inputs. Thanks.

Hi @Jeyalakshmi_KS ,

We can perform a custom sorting in the Memory or retrieve the files according to the required sorting, but it doesn’t perform the sorting in the actual folder.

Could you let us know the reason you want the files to be sorted ? Note, We can process the files based on custom sorting but re-arranging the file order in the Folder, would either require the renaming of the files or the manual sorting to be done.

Let us know the end output you require so we can be clear on our suggestions.

1 Like

Hi @supermanPunch ,
Thanks for your time.
I heard that one of my friends faced this interview question. So I wanted to try out. The requirement was “how to create a new set of Excel and word files and then put it in a folder and then arrange them according to the naming like a_0_b.doc , b_1_c.pdf , c_2_d.xsm, and then arrange/sort them according to the integer value… That too in ascending and descending… For arranging/sorting we need logic”.

So I did file creation part but in sorting part, I faced some issues. So I posted it in our forum. Not sure if I misunderstood the requirement.