substitutefor

software · Q889

Substitutes for SortableJS

JavaScript library for reorderable lists with cross-list moves, cloning and optional sorting plugins.

Suggest a correction

Compare your options

Find a substitute for SortableJS

Start with what you need to do. Compare the fit, differences, and sources for each option.

1 option

dnd kit

Sourced comparison

Building sortable lists and custom drag-and-drop interactions in web applications limited

dnd kit → SortableJS

Can replace sortable-list interactions where framework adapters and customizable sensors suit the application; requires new state and event integration.

Platforms: Web, TypeScript, React, Vue, Svelte, Solid · Region: Version, build and integration requirements apply

Sources for this comparison (2)Article revision 1217
How SortableJS compares as a replacement

Adding reorderable lists and cross-list item movement to web applications limited

SortableJS → dnd kit

Can replace list-reordering interactions when direct DOM-oriented integration is suitable; framework and state integration differ and must be assessed.

Platforms: Web, JavaScript · Region: Version, build and integration requirements apply

Sources for this comparison (2)Article revision 937

Substitution considerations

SortableJS can replace dnd kit for list-focused reordering when a direct DOM-oriented library fits the application. dnd kit offers a layered interaction model with framework adapters and extensible sensors. Neither API can simply replace the other without revisiting events, state updates and styling. Accessibility behavior and framework compatibility should be tested in the finished interface; this submission reports documentation research, not an installation or interaction test.[2][7]

Overview

SortableJS adds drag-and-drop ordering to lists of DOM elements. It supports moving items within or between lists, drag handles, cloning and configurable sorting behavior. It is an open-source interaction library rather than a complete board application or a persistence service.[1][2]

Configuring list interactions

A list can be made sortable directly from its element. Shared group configuration enables transfers, while cloning keeps the original item in its source list. Drag handles limit the area that starts movement, and filters can exclude controls or items. Sorting within a source list can be disabled while allowing transfers out of it. These distinctions are useful for interfaces such as an asset palette beside an ordered destination list, where copying and moving have different meanings.[1]

Events and saved ordering

Events expose movement information, including indices for all children and separate indices counting draggable children. The library's Store interface can read an initial order and save it on drop; the documented example uses localStorage and item IDs. This demonstrates a browser-local persistence hook, not a backend synchronization service. An application's own state and durable ordering need to follow the intended event path.[2]

Multi-item and swap behavior

MultiDrag permits selecting several elements and moving them together. Its event payload includes arrays of items and their indices. During sorting, selected elements other than the principal dragged element can have an intermediate new index of -1 because of folding or removal from the DOM. Code should not treat those intermediate values as completed positions. The separate Swap plugin instead exchanges the dragged item with the drop target rather than inserting it through ordinary sorting; it exposes that target as swapItem.[4][5]

React wrapper qualifications

The separate react-sortablejs repository explicitly warns that its bindings are not considered production-ready. It explains that Sortable changes DOM nodes and the wrapper reverses some actions so React can reconcile state. Its guide requires stable item keys rather than array indices and records unresolved nested-list state-update behavior. These warnings apply to that integration; they should not be silently generalized to every use of the underlying vanilla library or omitted when recommending it for a React project.[3]

Packaging and reuse

The project offers default, core and complete builds, with plugins included or mounted according to the selected build. It documents a native HTML drag-and-drop path and a forceFallback option. Generated integration code should match the actual import and plugin setup instead of assuming every optional behavior is enabled. The MIT license permits reuse and redistribution subject to retaining its notices.[2][6]

Capabilities & limitations

List movement and cloning

supported

Shared groups support cross-list movement; clone and receive rules configure transfer behavior.[1]

Adding reorderable lists and cross-list item movement to web applications · Web, JavaScript · Version, build and integration requirements apply

1 source · check evidence
https://sortablejs.github.io/Sortable/

Shared lists, cloning, handles, filtering and nested sortables

vendor · checked 2026-10-07

Order persistence

limited

Store callbacks can save/restore IDs; the documented localStorage example is not server synchronization.[2]

Adding reorderable lists and cross-list item movement to web applications · Web, JavaScript · Version, build and integration requirements apply

1 source · check evidence
https://github.com/SortableJS/Sortable/blob/master/README.md

Packages, event indices, Store and fallback options

vendor · checked 2026-10-07

React integration

limited

Separate wrapper documents readiness and nested-state caveats; stable IDs are required instead of index keys.[3]

Adding reorderable lists and cross-list item movement to web applications · Web, JavaScript · Version, build and integration requirements apply

1 source · check evidence
https://github.com/SortableJS/react-sortablejs/blob/master/README.md

Production-readiness warning, keys, DOM reconciliation and nesting

vendor · checked 2026-10-07

Multiple item dragging

supported

MultiDrag requires plugin setup and handling its multi-item event data.[4]

Adding reorderable lists and cross-list item movement to web applications · Web, JavaScript · Version, build and integration requirements apply

1 source · check evidence
https://github.com/SortableJS/Sortable/blob/master/plugins/MultiDrag/README.md

Selection and intermediate index caveat

vendor · checked 2026-10-07

References

  1. SortableJS examples

    Shared lists, cloning, handles, filtering and nested sortables

    vendor · retrieved 2026-10-07
  2. SortableJS repository documentation

    Packages, event indices, Store and fallback options

    vendor · retrieved 2026-10-07
  3. React bindings documentation

    Production-readiness warning, keys, DOM reconciliation and nesting

    vendor · retrieved 2026-10-07
  4. MultiDrag plugin documentation

    Selection and intermediate index caveat

    vendor · retrieved 2026-10-07
  5. Swap plugin documentation

    Exchange behavior and swapItem event

    vendor · retrieved 2026-10-07
  6. SortableJS MIT license

    MIT grant and notice conditions

    vendor · retrieved 2026-10-07
  7. dnd kit architecture

    Framework layers and interaction toolkit

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
9372026-10-13 13:51:08/* wbeditentity-create-item:0| */ sf:5646b54b-1a23-4404-a068-a2b7e4cd285f:v1 | Add SortableJS with DOM/state distinction, MultiDrag event caveat and explicit React-wrapper readiness warning. | attribution: /proposals/5646b54b-1a23-4404-a068-a2b7e4cd285f