PHPackages                             ctrlwebinc/nova-order-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. ctrlwebinc/nova-order-field

ActiveLibrary[Templating &amp; Views](/categories/templating)

ctrlwebinc/nova-order-field
===========================

A Laravel Nova field.

2.1.0(4y ago)07MITPHPPHP &gt;=7.1.0

Since Sep 6Pushed 2y agoCompare

[ Source](https://github.com/ctrlwebinc/nova-order-field)[ Packagist](https://packagist.org/packages/ctrlwebinc/nova-order-field)[ RSS](/packages/ctrlwebinc-nova-order-field/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (10)Used By (0)

Nova Order Field
================

[](#nova-order-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4704d470d12482d28a65834a8cdf490d23601dc8484edf255d3523e43606ce9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6374726c776562696e632f6e6f76612d6f726465722d6669656c642e737667)](https://packagist.org/packages/ctrlwebinc/nova-order-field)[![Total Downloads](https://camo.githubusercontent.com/df8aeab14a9ead9498de13a3588fd97c68c2ec64d77193d2f339c18c75d2e9ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6374726c776562696e632f6e6f76612d6f726465722d6669656c642e737667)](https://packagist.org/packages/ctrlwebinc/nova-order-field)

### Description

[](#description)

A field that adds reordering functionality to your Laravel Nova resource's index using the [eloquent-sortable](https://github.com/spatie/eloquent-sortable) package by [Spatie](https://spatie.be).

### Installation

[](#installation)

This package can be installed through Composer.

```
composer require ctrlwebinc/nova-order-field
```

### Usage

[](#usage)

1. Follow the [usage instructions](https://github.com/spatie/eloquent-sortable#usage) on the eloquent-sortable repository to make your model sortable.
2. Add the `Ctrlweb\NovaOrderField\Orderable` trait to your Nova Resource.
3. Add a public static property called `$defaultOrderField` to your resource, containing your order column.
4. Add the `OrderField` to your Nova Resource `fields` method.

### Grouping

[](#grouping)

If your model/table has a grouping field (usually a foreign key): `id, `**`user_id`**`, title, order_column`and you'd like the above methods to take it into considerations, you can create a `buildSortQuery` method at your model:

```
public function buildSortQuery()
{
    return static::query()->where('user_id', $this->user_id);
}
```

This will restrict the calculations to fields value of the model instance.

### Example

[](#example)

```
use Ctrlweb\NovaOrderField\Orderable;
use Ctrlweb\NovaOrderField\OrderField;

class Page extends Resource
{
    use Orderable;

    public static $defaultOrderField = 'order';

    public function fields(Request $request)
    {
        return [
            OrderField::make('Order'),
        ];
    }
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~153 days

Recently: every ~196 days

Total

9

Last Release

1627d ago

Major Versions

0.0.1 → 1.0.02018-09-16

1.0.1 → 2.0.02019-04-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/31c6838722e93fa1f32630287da5e8f3845567a6cf4050240f98d4d4de170e50?d=identicon)[ctrlwebinc](/maintainers/ctrlwebinc)

---

Top Contributors

[![danidou](https://avatars.githubusercontent.com/u/193566?v=4)](https://github.com/danidou "danidou (16 commits)")[![michielkempen](https://avatars.githubusercontent.com/u/14795113?v=4)](https://github.com/michielkempen "michielkempen (16 commits)")[![toonvandenbos](https://avatars.githubusercontent.com/u/5635557?v=4)](https://github.com/toonvandenbos "toonvandenbos (9 commits)")[![yassir3wad](https://avatars.githubusercontent.com/u/31948375?v=4)](https://github.com/yassir3wad "yassir3wad (2 commits)")[![darmen](https://avatars.githubusercontent.com/u/184791?v=4)](https://github.com/darmen "darmen (2 commits)")[![mstaack](https://avatars.githubusercontent.com/u/10169509?v=4)](https://github.com/mstaack "mstaack (1 commits)")[![morphsteve](https://avatars.githubusercontent.com/u/6017359?v=4)](https://github.com/morphsteve "morphsteve (1 commits)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (1 commits)")[![james-staffs](https://avatars.githubusercontent.com/u/65457974?v=4)](https://github.com/james-staffs "james-staffs (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/ctrlwebinc-nova-order-field/health.svg)

```
[![Health](https://phpackages.com/badges/ctrlwebinc-nova-order-field/health.svg)](https://phpackages.com/packages/ctrlwebinc-nova-order-field)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2852.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2862.1M9](/packages/outl1ne-nova-sortable)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8113.3M27](/packages/whitecube-nova-flexible-content)[outl1ne/nova-multiselect-field

A multiple select field for Laravel Nova.

3423.3M2](/packages/outl1ne-nova-multiselect-field)[waynestate/nova-ckeditor4-field

This nova package allows you to use CKEditor 4 for text areas.

63769.8k9](/packages/waynestate-nova-ckeditor4-field)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
