I have a dataset containing 171 shapefiles, their names as "shp0_0" to "shp0_171". I need to merge them into a single shapefile. When I use the merge tool and load all the .shp from the folder, it gives me random order, they are not listed by the filename order.
I need the output attribute table's FIDs to correspond with the input shapefiles: shp1 to be in the 1st row and have FID 0, shp2 to be in the 2nd row and have FID 1 and so on.
Is there a way to list all shapefiles to be merged numerically sorted by filename?
I work in arcmap 10.3 (using arcpy).