None of those except indirectly caliber of player.
All the Type A comps go first. They are in order of previous season terribleness of departing franchise; if a 61-101 team loses a type A, they will pick before a 70-92 team that loses a type A. Each team's first type A loss is lined up in this way, then each team's second type A loss, etc.; a 61-101 team that loses two type A free agents does not pick 33rd and 34th, but 33rd and 40-something.
After all the Type A's are done in this way, the type B's are done in the same way.