not sure what MS excel version you have but you can try this formula in M3 copy across, it should spill down automatically.

Formula: copy to clipboard
=XLOOKUP(SORT($K$3:$K$14,1,-1),$K$3:$K$14,B$3:B$14,0,0)