[FR] sorting order of IPN

Open
#12,859 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@HUBERT-535 is already working on this.

Since Sep 24, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
django, python
Domain
database

Research direction

Start by locating how InvenTree sorts component IDs (IPNs) and how its component-list filters are implemented; the issue does not name files or tests. Check whether IPNs can support numeric sorting while retaining text sorting, and whether range or individual-number filtering fits the existing filters. Done means users can choose the sorting behavior and the requested filtering is addressed or scoped.

Written by the indexing model from the issue text.

Description

api help wanted
Please verify that this feature request has NOT been suggested before.
  • I checked and didn't find a similar feature request
Problem statement

We are considering running our production using InvenTree, but we are encountering a problem: we cannot sort our component IDs numerically.

Image
Suggested solution

We would prefer numerical sorting rather than text-based sorting; this makes working with IPNs much easier and allows for better filtering. A filter option to select a specific range or individual numbers would also be useful.

Describe alternatives you've considered

Text-based sorting doesn't necessarily have to be removed entirely in favor of numerical sorting, but the ability to choose the preferred sorting method would be a very helpful feature.

Examples of other systems

No response

Do you want to develop this?
  • I want to develop this.
Dominant language
Python
Stars
7.7k
Forks
1.6k
Avg merge
21h 45m
Merged PRs (30d)
204

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from inventree/InvenTree

All issues in inventree/InvenTree

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.