PHPackages                             xepozz/entity-sorter-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xepozz/entity-sorter-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

xepozz/entity-sorter-bundle
===========================

Adds sorting functionality to entities

v1.0.0(6y ago)012MITPHPPHP &gt;=5.6

Since Sep 27Pushed 6y agoCompare

[ Source](https://github.com/xepozz/entity-sorter-bundle)[ Packagist](https://packagist.org/packages/xepozz/entity-sorter-bundle)[ RSS](/packages/xepozz-entity-sorter-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (23)Used By (0)

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require xepozz/entity-sorter-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Add it to an entity
---------------------------

[](#step-2-add-it-to-an-entity)

Add the Doctrine entity listener to your entitiy and don't forget to include all the use statements. Then extend your Entity with BaseSort as shown as in the example below.

```
