# Feature OP-16673 - Sorting of list custom field takes number of selected items into account

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-16673

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List | UX/UI |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user who works with multi-select custom fields (lists)  
**I want to** sort work packages in the work package table ascending/descending based on the number of selected list items  
**so that** I can get an overview for which work packages the most/fewest attributes are selected

**Acceptance criteria**

*   When applied for a column of a custom field = list with multi-selection, ascending/descending sorting takes the number of selected items into account
    

**Technical notes**

*   It seems that currently, neither an alphabetical nor a numerical order ist respected.
    

**Example**

*   Create a custom field type = list with multi-selection enabled and several list entries
    
*   Add it to a work package type
    
*   Create 3-4 work packages and select different list entries (1x, 2x, 3x etc.)
    
*   Display the custom field as a column in a work package table
    
*   Sort the column ascending/descending
    

It will currently look like this

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/322999/content">

<br>

**Permissions and visibility considerations**

*   none
