ipt>
      const reorderGroup = document.querySelector('ion-reorder-group');

      reorderGroup.addEventListener('ionItemReorder', ({ detail }) => {
        // The `from` and `to` properties contain the index of the item
        // when the drag started and ended, respectively
        console.log('Dragged from index', detail.from, 'to', detail.to);

        // Finish the reorder and position the item in the DOM based on
        // where the gesture ended. This method can also be called directly
        // 