Considering the elements B, Al, Mg and K, the correct order of their metallic character is:
K > Mg > Al > B
Metallic nature decreases as you move from left to right in a period, giving us the order K>Mg>Al. It increases as you go from the top to the bottom in a group which means that Al>B.
The final order would be K>Mg>Al>B