$$displaystyle  K > Mg > Al > B  $$ represents the correct order of metallic character. On going from left to right in a period, the metallic character decreases. Thus the order $$displaystyle K > Mg > Al $$. On moving down the group, the metallic character decreases.Hence, $$B$$ is less metallic than $$Al$$.