Sort: Β 

They are assigned/unassigned based on your HP at the moment of the check.
The server scan every x time the HP and assigns/unassigns the relative badge.