Move Nodes Up and Down

Hello,

Is anyone able to help with the code that allows you to move a node up and down exactly as the buttons below do?

Thank you in advance.

Best regards.