Sort the scandir results to make sure that we grab the highest index when merging feeds.