I have a grid and 3 points that act as attractors. After evaluating all the distances between the attractors and the grid, I want to select the 1st X cells closest to all 3. Instead, I am getting the first x cells for each individual attractor. For example, let’s say I need the closest 9 cells to the attractors, how can I sort the list according to all the distances computed?
What am I doing wrong?