Skip to content

[FR] sorting order of IPN #12859

Open

Description

@NBD-Develogic

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.

Activity

  1. added
    enhancement
    triage:not-checked
    on Sep 15, 2026
  2. SchrodingersGat commented on Sep 15, 2026

    @SchrodingersGat
    Member

    This is a non-trivial problem to solve because sorting happens at the database level.

    We have already solved this for order references values (and serial numbers) - these are sorted by storing a duplicate numerical value in a different database column, and sorting on that numerical value first

  3. removed
    enhancement
    triage:not-checked
    on Sep 15, 2026
  4. HUBERT-535 commented on Sep 24, 2026

    @HUBERT-535

    Hi @SchrodingersGat ,
    My team and I would like to work on this issue as part of our course project.
    Could you please assign this issue to us?

  5. added
    help wanted
    api
    on Oct 14, 2026
  6. added this to the 1.7.0 milestone on Oct 14, 2026
  7. modified the milestones: 1.7.0, 1.8.0 on Nov 2, 2026
  8. mkuchuman commented on Nov 21, 2026

    @mkuchuman

    Hi @HUBERT-535, is your team still on this? If not, I'd like to take it and use the same numeric-column approach as order references and serial numbers.

  9. HUBERT-535 commented on Nov 22, 2026

    @HUBERT-535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apihelp wanted

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions