PHPackages                             rtablada/ordered-eloquent - 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. [Database &amp; ORM](/categories/database)
4. /
5. rtablada/ordered-eloquent

ActiveLibrary[Database &amp; ORM](/categories/database)

rtablada/ordered-eloquent
=========================

An extension of Eloquent ORM for automatically ordering results

1.0.0(12y ago)318MITPHPPHP &gt;=5.3.0

Since Mar 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rtablada/OrderedEloquent)[ Packagist](https://packagist.org/packages/rtablada/ordered-eloquent)[ RSS](/packages/rtablada-ordered-eloquent/feed)WikiDiscussions master Synced yesterday

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

**Warning**

This package is no longer under active development. This was a quick fix for a submitted issue on the Laravel Repository. I will continue to keep an eye on Pull Requests, but will not be actively tracking issues.

Installation
------------

[](#installation)

Add `'rtablada/ordered-eloquent': '~1'` to your composer.json and extend `Rtablada\OrderedEloquent\Model`.

You can also replace the `Eloquent` alias with `Rtablada\OrderedEloquent\Model` in your `app/config/app.php`.

Use
---

[](#use)

Set the `$orderBy` property to the column you want all queries sorted by.

> **Note this sort will occur on ALL queries**

You can also set the `$sortDir` to set the sort direction (this defaults to `ASC`).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4501d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea9ccd400c74151601341e320935a31d1a9779c5eb49a8f364bc7a0ac75baa32?d=identicon)[rtablada](/maintainers/rtablada)

---

Top Contributors

[![rtablada](https://avatars.githubusercontent.com/u/2532004?v=4)](https://github.com/rtablada "rtablada (8 commits)")

---

Tags

laravelormeloquent

### Embed Badge

![Health badge](/badges/rtablada-ordered-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/rtablada-ordered-eloquent/health.svg)](https://phpackages.com/packages/rtablada-ordered-eloquent)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M88](/packages/mongodb-laravel-mongodb)[spatie/laravel-sluggable

Generate slugs when saving Eloquent models

1.5k12.4M294](/packages/spatie-laravel-sluggable)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[watson/validating

Eloquent model validating trait.

9733.4M53](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)

PHPackages © 2026

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