lifeonscreen/nova-sort-relations
A Laravel Nova package for sorting related models. It adds drag-and-drop reordering of hasMany and belongsToMany relationships directly on resource detail pages, saving sort order automatically. Ideal for managing ordered lists like menu items, gallery images, or featured posts without custom code.
lifeonscreen/nova-sort-relations adds simple, chainable sorting to Laravel Nova relationship fields. Sort BelongsTo, HasMany, and BelongsToMany results by any column directly in your resource definition—no custom queries or resource overrides required.
BelongsTo::make('Author')->sortBy('name', 'desc')
sortBy() API with configurable ascending/descending directionHow can I help you explore Laravel packages today?