hi guys , i made an inventory for my game but the problem is that when i click and drag an object over the other one it overlaps it

so i want to know what to do to make it , when i click on an object, it makes it at the top of all the other objects in the inventory (makes it's depth the lowest it think)

i wish you guys can help me