Gluttonous Colluding Numbers
J, 12 bytes
-1 thanks to FrownyFrog!
[/:OR\@e.-e.

Try it online!
For 6 4 3 1 2 3 0 and 0 2 4:
[/:OR\@e.-e.
   OR        OR …
     \       each prefix of …
      @e.    the bitmask of friends, or:
   OR\@e.    after the first friend? (0 1 1 1 1 1 1)
          e. the bitmask of friends  (0 1 0 0 1 0 1)
         -   minus                   (0 0 1 1 0 1 0)
[/:          (stable) sort the people based on the list
                                     (6 4 3 1 2 3 0)