Ross ROSS = Recommend OSS · open-source software intelligence for agents

spatie/eloquent-sortable

Sortable behaviour for Eloquent models observed · 2026-08-28

github.com/spatie/eloquent-sortable · homepage · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

81/100

  • Activity 89
  • Release rhythm 59
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 69.5
  • age_days: 4432
  • days_rel: 193
  • days_push: 68
  • n_releases_24m: 7

Full methodology

Adoption not part of the score

1518 stars · 138 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A PHP package by Spatie that adds sortable behaviour to Laravel Eloquent models via a trait. It maintains an order column on records and provides a query scope to fetch records in the correct order.

Use cases

  • make eloquent models sortable with drag-and-drop ordering
  • maintain an order column for laravel model records
  • fetch records in a custom sort order in laravel
  • reorder database rows in a laravel app
  • add sort position to eloquent models automatically

When to choose

  • you use Laravel Eloquent and need ordered records
  • you want a simple trait-based solution for model ordering
  • you need a query scope to retrieve models in sort order

When to avoid

  • you don't use Laravel or Eloquent
  • you need complex nested or tree-based ordering
  • you need frontend drag-and-drop UI (this only handles the backend ordering)

Facets

library · maturity stable

orm web-development backend databases php eloquent sortable trait laravel-package ordering laravel

4 sources

Member repositories

RepositoryRoleHealth v2
spatie/eloquent-sortablemain81

For agents

markdown · JSON · MCP: product_card(name="spatie/eloquent-sortable")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem