Create 2 blueprints named "Blueprint A" and "Blueprint B".
Put Blueprint A into a chest and keep Blueprint B in your inventory.
Shift-click Blueprint A into your inventory.
Expected: Blueprint A is highlighted, because it is the blueprint that was actually moved into your inventory.
Actual: Blueprint B is highlighted because it is sorted to the end.
That seems to be unrelated. That bug has to do with inventories changing after the highlight is applied; this is for two items of the same type but different data.