  searchResult.unshift(searchResult.splice(index, 1)[0])
          }
        }

        const ul = d3.select('#search-result')
          .style('visibility', 'visible')
          .select('ul')

        ul.selectAll('li')
          .data(searchResult)
          .join('li')
          .classed('result-item', true)
          .classed('result-info', false)
          .text(d => d.id)
          .on('click', (event, d) => {
            d3.select('#search').property('value', '')
            d3.select('#search-result