A* doesn't find every possible path to a point, it only finds one, so I'm unsure what you mean with "sorting the paths from longest to shortest", it does require you to keep the nodes in a sorted priority queue if that's what you're thinking of (which can be an array also...)








Graham