Previously, extend public int compare(REDPick a, REDPick b) { would compare a and b solely by their distance to the camera.
In the new version, it first compares the distance to the pick line; if those distances are equal, it falls back to the previous behavior of comparing their distance to the camera.
This new distance in REDPick, public double raySqrD = -1; is -1 by default and needs to be set manually if you call the REDPick constructor directly. Picks that have not set this value will be compared to other picks by old behavior.