PackageTrack
Sign in Get early access

spatie/eloquent-sortable

Sortable behaviour for eloquent models

5.0.1 28M downloads/mo #656 most downloaded on Packagist spatie/eloquent-sortable

What this package is like to depend on

Last release 6 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

2 releases in the last 12 months

see the full history below

Release timeline

54 releases · Jul 2014 to Feb 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 54
  1. 5.0.1 21 Feb 2026
    Release notes

    Support Laravel 13

    Open source →
    Release notes

    5.0.1 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 5.0.0 12 Feb 2026
    Release notes

    What's changed

    • Use save() instead of saveQuietly() in moveAfter and moveBefore for consistent model event behavior (#200)
    • Drop support for PHP 8.1 (EOL)
    • Drop support for Laravel 9 (EOL)

    Breaking changes

    • Minimum PHP version is now 8.2
    • Minimum Laravel version is now 10
    • moveAfter and moveBefore now fire model events (previously used saveQuietly())
    Open source →
    Release notes

    What's changed

    • Use save() instead of saveQuietly() in moveAfter and moveBefore for consistent model event behavior (#200)
    • Drop support for PHP 8.1 (EOL)
    • Drop support for Laravel 9 (EOL)

    Breaking changes

    • Minimum PHP version is now 8.2
    • Minimum Laravel version is now 10
    • moveAfter and moveBefore now fire model events (previously used saveQuietly())
    Open source →
    Release notes

    5.0.0

    Compare

    Choose a tag to compare

    Open source →
  3. 4.5.2 25 Aug 2025
    Release notes

    What's Changed

    • Revert "Check for parent::buildSortQuery() (#188)" by @phh in #193

    New Contributors

    • @phh made their first contribution in #193

    Full Changelog: 4.5.1...4.5.2

    Open source →
    Release notes

    What's Changed

    • Revert "Check for parent::buildSortQuery() (#188)" by @phh in https://github.com/spatie/eloquent-sortable/pull/193

    New Contributors

    • @phh made their first contribution in https://github.com/spatie/eloquent-sortable/pull/193

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.5.1...4.5.2

    Open source →
    Release notes

    4.5.2

    Compare

    Choose a tag to compare

    Open source →
  4. 4.5.1 25 Aug 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.5.0...4.5.1

    Open source →
    Release notes

    What's Changed

    • Check for parent::buildSortQuery() by @JeroenHauser in https://github.com/spatie/eloquent-sortable/pull/188
    • Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/spatie/eloquent-sortable/pull/191
    • Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot[bot] in https://github.com/spatie/eloquent-sortable/pull/190

    New Contributors

    • @JeroenHauser made their first contribution in https://github.com/spatie/eloquent-sortable/pull/188

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.5.0...4.5.1

    Open source →
    Release notes

    4.5.1

    Compare

    Choose a tag to compare

    Open source →
  5. 4.5.0 03 Jun 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.4.2...4.5.0

    Open source →
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/187
    • Add moveAfter and moveBefore methods for precise positioning by @SebastiaanKloos in https://github.com/spatie/eloquent-sortable/pull/189

    New Contributors

    • @SebastiaanKloos made their first contribution in https://github.com/spatie/eloquent-sortable/pull/189

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.2...4.5.0

    Open source →
    Release notes

    4.5.0

    Compare

    Choose a tag to compare

    Open source →
  6. 4.4.2 19 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.4.1...4.4.2

    Open source →
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/185
    • Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/eloquent-sortable/pull/186

    New Contributors

    • @laravel-shift made their first contribution in https://github.com/spatie/eloquent-sortable/pull/186

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.1...4.4.2

    Open source →
    Release notes

    4.4.2

    Compare

    Choose a tag to compare

    Open source →
  7. 4.4.1 23 Dec 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.4.0...4.4.1

    Open source →
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/176
    • Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/181
    • Fix PHP 8.4 deprecation notice by @clarkewing in https://github.com/spatie/eloquent-sortable/pull/184

    New Contributors

    • @clarkewing made their first contribution in https://github.com/spatie/eloquent-sortable/pull/184

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.0...4.4.1

    Open source →
    Release notes

    4.4.1

    Compare

    Choose a tag to compare

    Open source →
  8. 4.4.0 04 Jun 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.3.0...4.4.0

    Open source →
    Release notes

    What's Changed

    • Dispatch event after performing a sort by @chrispage1 in https://github.com/spatie/eloquent-sortable/pull/178

    New Contributors

    • @chrispage1 made their first contribution in https://github.com/spatie/eloquent-sortable/pull/178

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.3.0...4.4.0

    Open source →
    Release notes

    4.4.0

    Compare

    Choose a tag to compare

    Open source →
  9. 4.3.0 02 May 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.2.0...4.3.0

    Open source →
    Release notes

    What's Changed

    • Use model's qualified key name for update queries by @JeremyDunn in https://github.com/spatie/eloquent-sortable/pull/175

    New Contributors

    • @JeremyDunn made their first contribution in https://github.com/spatie/eloquent-sortable/pull/175

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.2.0...4.3.0

    Open source →
    Release notes

    4.3.0

    Compare

    Choose a tag to compare

    Open source →
  10. 4.2.0 26 Feb 2024
    Release notes

    What's Changed

    Full Changelog: 4.1.1...4.2.0

    Open source →
    Release notes

    What's Changed

    • Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/162
    • Support laravel 11 by @mokhosh in https://github.com/spatie/eloquent-sortable/pull/171
    • bump min laravel 9 version to support ignore timestamps by @mokhosh in https://github.com/spatie/eloquent-sortable/pull/173

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.1.1...4.2.0

    Open source →
    Release notes

    4.2.0

    Compare

    Choose a tag to compare

    Open source →
  11. 4.1.1 22 Jan 2024
    Release notes

    What's Changed

    • Fix typo in eloquent-sortable.php by @dissto in https://github.com/spatie/eloquent-sortable/pull/168
    • Add ignore timestamp by @mokhosh in https://github.com/spatie/eloquent-sortable/pull/169

    New Contributors

    • @dissto made their first contribution in https://github.com/spatie/eloquent-sortable/pull/168
    • @mokhosh made their first contribution in https://github.com/spatie/eloquent-sortable/pull/169

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.1.0...4.1.1

    Open source →
  12. 4.1.0 11 Dec 2023
    Release notes
    • add support for Laravel 10
    • drop support for Laravel 8
    • drop support for PHP 8.0
    Open source →
  13. 4.0.2 23 Jan 2023
    Release notes

    What's Changed

    • Update readme about publishing config file by @patrickbrouwers in https://github.com/spatie/eloquent-sortable/pull/120
    • Add Dependabot Automation by @patinthehat in https://github.com/spatie/eloquent-sortable/pull/136
    • Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/spatie/eloquent-sortable/pull/137
    • Add PHP 8.2 Support by @patinthehat in https://github.com/spatie/eloquent-sortable/pull/138
    • Laravel 10 support by @Okipa in https://github.com/spatie/eloquent-sortable/pull/142

    New Contributors

    • @patrickbrouwers made their first contribution in https://github.com/spatie/eloquent-sortable/pull/120
    • @dependabot made their first contribution in https://github.com/spatie/eloquent-sortable/pull/137
    • @Okipa made their first contribution in https://github.com/spatie/eloquent-sortable/pull/142

    Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.0.1...4.0.2

    Open source →
  14. 4.0.1 21 Jan 2022
    Release notes
    • support Laravel 9
    Open source →
  15. 4.0.0 31 Mar 2021
    Release notes
    • require PHP 8+
    • drop support for all PHP 7.x versions
    • use PHP 8 syntax
    Open source →
  16. 3.11.0 18 Jan 2021
    Release notes
    • add methods to determine whether element is the last or first in order (#102)
    Open source →
  17. 3.10.0 25 Nov 2020
    Release notes
    • add support for PHP 8.0
    • drop support for Laravel 5.8
    Open source →
  18. 3.9.0 15 Sep 2020
    Release notes
    • add config file
    Open source →
  19. 3.8.3 08 Sep 2020
    Release notes
    • add support for Laravel 8
    Open source →
  20. 3.8.2 08 Jul 2020
    Release notes
    • reduce dependency tree (#89)
    Open source →
  21. 3.8.1 26 Jun 2020
    Release notes
    • models don't always have an id as key, use getKey instead
    Open source →
  22. 3.8.0 02 Mar 2020
    Release notes
    • add support for Laravel 7
    Open source →
  23. 3.7.0 04 Sep 2019
    Release notes
    • add support for Laravel 6
    Open source →
  24. 3.6.0 01 Apr 2019
    Release notes
    • allow setNewOrder to accept a custom sort column
    Open source →
  25. 3.5.0 27 Feb 2019
    Release notes
    • drop support for L5.7 and below, PHP 7.1 and PHPUnit 7
    Open source →
  26. 3.4.4 27 Feb 2019
    Release notes
    • add support for Laravel 5.8
    Open source →
  27. 3.4.3 24 Aug 2018
    Release notes
    • add support for Laravel 5.7
    Open source →
  28. 3.4.2 07 Feb 2018
    Release notes
    • add support for L5.6
    • drop support for anything lower that L5.5
    Open source →
  29. 3.4.1 31 Aug 2017
    Release notes
    • fix deps
    Open source →
  30. 3.4.0 30 Aug 2017
    Release notes
    • add compatibility with Laravel 5.5
    Open source →
  31. 3.3.0 16 Apr 2017
    Release notes
    • add buildSortQuery()
    Open source →
  32. 3.2.1 23 Jan 2017
    Release notes
    • release without changes. Made to kickstart Packagist.
    Open source →
  33. 3.2.0 23 Jan 2017
    Release notes
    • add compatibility with Laravel 5.4
    Open source →
  34. 3.1.0 20 Nov 2016
    Release notes
    • added support for SoftDeletes
    Open source →
  35. 3.0.0 21 Oct 2016
    Release notes
    • removed the need for a service provider
    • some cleanup
    Open source →
  36. 2.3.0 19 Oct 2016
    Release notes
    • added support for collections passed to setNewOrder
    Open source →
  37. 2.2.0 19 Oct 2016
    Release notes
    • added moveToStart, moveToEnd and swapOrder
    Open source →
  38. 2.1.1 21 Mar 2016
    Release notes
    • Fixed a bug in moveOrderUp (see #13)
    Open source →
  39. 2.1.0 25 Feb 2016
    Release notes
    • Added moveOrderUp- and moveOrderDown-methods
    Open source →
  40. 2.0.1 10 Aug 2015
    Release notes
    • Fixed typehinting on scope
    Open source →
  41. 2.0.0 06 Aug 2015
    Release notes
    • SortableInterface is now Sortable
    • Sortable is now SortableTrait
    • getHighestOrderNumber() now retrieves the highest existing order number (not a new one)
    • setHighestOrderNumber() no longer requires a Sortable object parameter
    • sort_when_creating option
    • Added shouldSortWhenCreating function
    • Added test coverage
    Open source →
  42. 1.1.2 11 Jun 2015
    Release notes
    • Removed typehinting on scope in interface.
    Open source →
  43. 1.1.1 11 Jun 2015
    Release notes
    • Removed typehinting on scope
    Open source →
  44. 1.1.0 11 Jun 2015
    Release notes
    • Added an argument to setNewOrder to specify the starting order
    • Adopted psr-2 and psr-4
    Open source →
  45. 1.0.2 22 May 2015

    Nothing published for this version

  46. 1.0.1 18 May 2015

    Nothing published for this version

  47. 1.0.0 13 Feb 2015

    Nothing published for this version

  48. 0.2.2 26 Jan 2015

    Nothing published for this version

  49. 0.2.1 14 Oct 2014

    Nothing published for this version

  50. 0.1.4 02 Sep 2014

    Nothing published for this version

  51. 0.1.3 15 Jul 2014

    Nothing published for this version

  52. 0.1.2 15 Jul 2014

    Nothing published for this version

  53. 0.1.1 15 Jul 2014

    Nothing published for this version

  54. 0.1.0 15 Jul 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive