I am looking for a simple way to sort my custom entities through a drag and drop interface and display them in the custom order in my views.

The best way would probably be to add a weight basefield to the entity type and let the drag and drop interface change the weight on each entity through ajax. Are there any examples on how to do that?

  • The Weight module for D8 has a release and can do what you ask at a basic level. I create an admin view that lets you order the entities as drag and drop, and then use other views to display it. Only drawback is the weight is stored on the entity, not the view, so its a not a localized value.
    – Kevin
    Jul 8, 2016 at 19:31

1 Answer 1


You can created an administration page views with you custom entities and to sort it you can use use the DraggableViews module. You would have to create another view to display your entities.

  • Thanks for your answer, but I don't see any D8 support. Is there any alpha/beta repository?
    – alexej_d
    Apr 8, 2015 at 7:28
  • No yet, you can open an issue at their issue queue asking about it. Apr 9, 2015 at 21:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.