NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #665 most downloaded on Packagist
Sortable behaviour for eloquent models
Latest stable
5.0.1
Last release 9 months ago
21 Feb 2026
Release timing varies
gaps range from 9 days to 11 months
Most releases are documented
notes for 44 of 54 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
54 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Support Laravel 13
Support Laravel 13
Use save() instead of saveQuietly() in moveAfter and moveBefore for consistent model event behavior
save() instead of saveQuietly() in moveAfter and moveBefore for consistent model event behavior (#200)moveAfter and moveBefore now fire model events (previously used saveQuietly())Your coding agent can read these notes before it upgrades. Set up the MCP server →
5.0.0
Compare
Revert "Check for parent::buildSortQuery() (#188)" by @phh in https://github.com/spatie/eloquent-sortable/pull/193
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.5.1...4.5.2
Check for parent::buildSortQuery() by @JeroenHauser in https://github.com/spatie/eloquent-sortable/pull/188
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.5.0...4.5.1
Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/187
moveAfter and moveBefore methods for precise positioning by @SebastiaanKloos in https://github.com/spatie/eloquent-sortable/pull/189Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.2...4.5.0
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/185
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.1...4.4.2
Fix PHP 8.4 deprecation notice by @clarkewing in https://github.com/spatie/eloquent-sortable/pull/184
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.0...4.4.1
Dispatch event after performing a sort by @chrispage1 in https://github.com/spatie/eloquent-sortable/pull/178
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.3.0...4.4.0
Use model's qualified key name for update queries by @JeremyDunn in https://github.com/spatie/eloquent-sortable/pull/175
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.2.0...4.3.0
Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/162
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.1.1...4.2.0
Fix typo in eloquent-sortable.php by @dissto in https://github.com/spatie/eloquent-sortable/pull/168
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.1.0...4.1.1
[FEAT] add withoutGlobalScopes to setNewOrder method by @AbdelrahmanBl in https://github.com/spatie/eloquent-sortable/pull/167
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.0.2...4.1.0
Update readme about publishing config file by @patrickbrouwers in https://github.com/spatie/eloquent-sortable/pull/120
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.0.1...4.0.2
- support Laravel 9
drop support for all PHP 7.x versions
add methods to determine whether element is the last or first in order
- add support for PHP 8.0 - drop support for Laravel 5.8
- add config file
- add support for Laravel 8
- reduce dependency tree
models don't always have an id as key, use getKey instead
getKey instead- add support for Laravel 7
- add support for Laravel 6
allow setNewOrder to accept a custom sort column
setNewOrder to accept a custom sort columndrop support for L5.7 and below, PHP 7.1 and PHPUnit 7
- add support for Laravel 5.8
- add support for Laravel 5.7
drop support for anything lower that L5.5
- fix deps
add compatibility with Laravel 5.5
- add buildSortQuery()
buildSortQuery()release without changes. Made to kickstart Packagist.
add compatibility with Laravel 5.4
- added support for SoftDeletes
SoftDeletesremoved the need for a service provider
added support for collections passed to setNewOrder
setNewOrderadded moveToStart, moveToEnd and swapOrder
moveToStart, moveToEnd and swapOrderfixed a bug in moveOrderUp (see #13)
moveOrderUp (see #13)Added moveOrderUp\- and moveOrderDown-methods
moveOrderUp- and moveOrderDown-methods- Fixed typehinting on scope
SortableInterface is now Sortable
Removed typehinting on scope in interface.
- Removed typehinting on scope
Added an argument to setNewOrder to specify the starting order
setNewOrder to specify the starting orderNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.