Drupal - Sort content of views with drag and drop

The Draggable Views module might be what you need. There is a version of the module for Drupal 8.

According to the module description,

DraggableViews makes rows of a view "draggable" which means that they can be rearranged by Drag'n'Drop.

I tried the following instructions in the documentation page on a vanilla Drupal 8.2.6 installation, and it worked fine (see screenshot below).

  1. Activate the module and navigate to the edit-page of an existing view.
  2. Now go to the Format section and choose Table.
  3. Make sure you have the "Content: Title" field, place it as your first field.
  4. Add the field "Draggableviews: Content" at the Fields section, place it after the "Content: Title" field.Make sure not to check "Exclude from display"; if you do the view will permit drag and drop but the changes will not be saved.
  5. Add "DraggableViews: Weight" at the Sort criteria section and place it as the first Sort criteria. Save the view and you're done.

enter image description here

Tags:

Views

8