I am not the Author of this mod. Original mod can be found here (https://mods.factorio.com/mod/ClosestFirst), but it does not work with Factorio v1.1. As the original developer doesn't seem to be supporting it, I have updated the required Factorio version of the Closest First Mod to allow it to run on Factorio v1.1. If you want to use the Closest First mod on 1.1, this is what you want. I made no other changes to the code. I have no intention of supporting this mod beyond this initial upload. I have tested it on Vanilla, and a dozen common mods I typically use. It works fine.
All credit to the original Author : https://mods.factorio.com/user/_italics_