Fix function to prioritize "pdroid"-type mods
Fix function to prioritize "pdroid"-type mods

This function was meant to take any list of requested mods, and re-order them with
any "pdroid"-type mods to be applied first. This is needed because of the "provisional"
use--where we sometimes copy over smali files we know will patch for troublesome roms.

Since copying over smali files would clobber any patches applied before the copy, it
was important to make sure pdroid went first. Provisionals can be dangerous, this is
a safety measure. Anyway, looks like there was at least two bugs. I am not sure when they
got introduced, I believe this used to work. Should also allow me to reinstate the
CONFLICTS function Caldair found was causing problems. We will see about that.

mateor/auto-patcher,mateor/auto-patcher,mateor/auto-patcher