# Bug OP-7787 - Order of work packages in XLS, PDF, CSV export differs from order in OpenProject

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7787

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.6.0 |
| Observed in versions | 11.0.0 |
| Sprint | 14.6.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Oliver Günther |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

OpenProject Version: 11.0.0 Community Edition

Ubuntu 18.04 LTS

### **Steps to reproduce:**

1.  Go to work package list

2.  Filter list (e.g. only Phase and Milestone) or order manually

3.  Click on the three dots menu in the upper right corner

4.  Chose "export.."

5.  Export with description (e.g. PDF, XLS, etc.)

### **Actual Behavior**

  - Work packages are ordered by ID

### **Expected Behavior**

  - The manual order is maintained. So the order in export should be the same as in work package view in OpenProject.

  - **Note**: This only works when the query has been saved, which happens automatically when switching from automatic to manual sort

### Additional Info

This bug has existed under the ID <mention class="mention" data-id="34112" data-type="work_package" data-text="#34112">#34112</mention> and was closed. However, the problem still exists.
