healing skill targets lowest hp in party

https://forums.rpgmakerweb.com/index.php?threads/skill-target-lowest-hp-ally.68287/
I found this thread, which has a same issue like me, but it doesn't help really.
I applied a code from above thread, the skill only heals 2 actors of the 1st and 2nd party member, not the first and second lowest hp in the party.
can anyone help me with this issue?

Original thread: https://forums.rpgmakerweb.com/threads/healing-skill-targets-lowest-hp-in-party.96295/