PHPackages                             42phoenix42/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. 42phoenix42/nova-order-field

ActiveLibrary

42phoenix42/nova-order-field
============================

A Laravel Nova field.

2.0.2(6y ago)012MITPHPPHP &gt;=7.1.0

Since Sep 6Pushed 6y agoCompare

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

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

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

[](#nova-order-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/22288a89b39f61e17630778f48a079c686b848dc2e52c5cb340f714af239cb88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d69636869656c6b656d70656e2f6e6f76612d6f726465722d6669656c642e737667)](https://packagist.org/packages/michielkempen/nova-order-field)[![Total Downloads](https://camo.githubusercontent.com/cc25c3e9c36008e80cc0dd6664f075de918a361635e2640fedaabf2c2f80366b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d69636869656c6b656d70656e2f6e6f76612d6f726465722d6669656c642e737667)](https://packagist.org/packages/michielkempen/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).

### Demo

[](#demo)

[![Demo](https://raw.githubusercontent.com/michielkempen/nova-order-field/master/docs/screenshot.png)](https://raw.githubusercontent.com/michielkempen/nova-order-field/master/docs/screenshot.png)

### Installation

[](#installation)

This package can be installed through Composer.

```
composer require michielkempen/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 `MichielKempen\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 MichielKempen\NovaOrderField\Orderable;
use MichielKempen\NovaOrderField\OrderField;

class Page extends Resource
{
    use Orderable;

    public static $defaultOrderField = 'order';

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 58.8% of commits — single point of failure

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 ~71 days

Recently: every ~87 days

Total

6

Last Release

2445d ago

Major Versions

0.0.1 → 1.0.02018-09-16

1.0.1 → 2.0.02019-04-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2892052?v=4)[IM](/maintainers/42phoenix42)[@42phoenix42](https://github.com/42phoenix42)

---

Top Contributors

[![michielkempen](https://avatars.githubusercontent.com/u/14795113?v=4)](https://github.com/michielkempen "michielkempen (10 commits)")[![42wobla42](https://avatars.githubusercontent.com/u/220769709?v=4)](https://github.com/42wobla42 "42wobla42 (3 commits)")[![darmen](https://avatars.githubusercontent.com/u/184791?v=4)](https://github.com/darmen "darmen (2 commits)")[![morphsteve](https://avatars.githubusercontent.com/u/6017359?v=4)](https://github.com/morphsteve "morphsteve (1 commits)")[![yassir3wad](https://avatars.githubusercontent.com/u/31948375?v=4)](https://github.com/yassir3wad "yassir3wad (1 commits)")

---

Tags

laravelnova

### Embed Badge

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

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[insenseanalytics/nova-server-monitor

A Laravel Nova tool for Spatie's Server Monitor library.

6546.9k](/packages/insenseanalytics-nova-server-monitor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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