My model consist in load from a shapefile a hexagonal grid. Each hexagon in the grid is an Agent. In the following method, I created the neighbourhood of each hexagon. And storing it in a List, actually I created two list; one for the geometry itself and the second is for the ID of each hexagon that belongs to the neighbourhood.
I need to sort the list. Because I would like to perform different actions depending of which direction is located the neighbour.
However, each hexagon's ID is not correlative then I cannot in order to sort by ID. I have been trying to figure it out how the query analyses. Although, I was not successful.
Does exist the way to know in which direction is located each hexagon?