renaming in order of assembly tree

Hello,

I was wondering what is the best way to rename an assemblynumerically to part numbers (eg. m-001, m-002, m-003...and so on)using SWE.

Because the files are listed alphabetically in SWE, and I havenoticed in terms of not hurting the assembly, that it is best toclose the assembly, but then you don't know which generic partname, should have which part number.

I need to rename them in order of part number based on assemblies& sub-assemblies, then manufactured parts, then purchasedparts/

Any help in this matter would be greatly appreciated

Thanks in advance,
SolidworksSolidworks Explorer