def METHOD_NAME(self, socket, context, layout):
    layout.prop(self, 'up', text='', icon='TRIA_UP')
    layout.prop(self, 'down', text='', icon='TRIA_DOWN')
    layout.alert = self.alert[int(socket.prop_name.rsplit('_', 1)[-1])]
    layout.prop(self, socket.prop_name)