PHPackages                             mediaman/module-product-category-sort-order - 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. [API Development](/categories/api)
4. /
5. mediaman/module-product-category-sort-order

AbandonedArchivedMagento2-module[API Development](/categories/api)

mediaman/module-product-category-sort-order
===========================================

Magento 2 module that provides a sort order for category position

1.0.2(9y ago)256MITPHPPHP &gt;=7.0

Since Jun 13Pushed 9y agoCompare

[ Source](https://github.com/mediamanDE/magento-module-product-category-sort-order)[ Packagist](https://packagist.org/packages/mediaman/module-product-category-sort-order)[ Docs](http://mediaman.de/)[ RSS](/packages/mediaman-module-product-category-sort-order/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (4)Used By (0)

Product Category Sort Order
===========================

[](#product-category-sort-order)

Provides a sort order for category position.

The default Magento2 `/rest/V1/products` REST API endpoint does not allow to sort by products category position. This module addresses this problem by plugging in seamlessly into the Magento2 API.

[![Build Status](https://camo.githubusercontent.com/681e2ab497bb8f002b55a49912b9d784b6a4214beada33f4835efc552a97aab9/68747470733a2f2f7472617669732d63692e6f72672f6d656469616d616e44452f6d6167656e746f2d6d6f64756c652d70726f647563742d63617465676f72792d736f72742d6f726465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mediamanDE/magento-module-product-category-sort-order)

Getting Started
---------------

[](#getting-started)

Install the module via composer

```
$ composer require "mediaman/module-product-category-sort-order: 1.*"

```

Enable the module

```
$ ./bin/magento module:enable Mediaman_ProductCategorySortOrder

```

Upgrade your Magento database schemas

```
$ ./bin/magento setup:upgrade

```

### Usage

[](#usage)

You can use the `/rest/V1/products` endpoint as you normally would:

```
$ curl -X GET http://magento.example.com/rest/V1/products?
searchCriteria[filterGroups][0][filters][extension_attributes][field]=category_id&
searchCriteria[filterGroups][0][filters][extension_attributes][value]=42&
searchCriteria[filterGroups][0][filters][extension_attributes][conditionType]=eq&
searchCriteria[sortOrders][0][field]=position&
searchCriteria[sortOrders][0][direction]=ASC
--header "Authorization: Bearer pbhercbtk6dd3eatf1pyx8jj45avjluu"

```

License
-------

[](#license)

MIT © [mediaman GmbH](mailto:hallo@mediaman.de)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~3 days

Total

3

Last Release

3297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1022006?v=4)[GlobalMediaMan](/maintainers/mediaman)[@MediaMan](https://github.com/MediaMan)

---

Top Contributors

[![R4c00n](https://avatars.githubusercontent.com/u/3935098?v=4)](https://github.com/R4c00n "R4c00n (10 commits)")

---

Tags

composer-packagemagento2magento2-extensionmagento2-moduleapimagentoheadlessproductcomposer-installercategorymagento 2magento 2 modulesort-ordermediaman

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mediaman-module-product-category-sort-order/health.svg)

```
[![Health](https://phpackages.com/badges/mediaman-module-product-category-sort-order/health.svg)](https://phpackages.com/packages/mediaman-module-product-category-sort-order)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.8M12](/packages/mollie-magento2)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.2k1](/packages/opengento-module-category-import-export)[yireo/magento2-additional-endpoints-graph-ql

113.0k](/packages/yireo-magento2-additional-endpoints-graph-ql)

PHPackages © 2026

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