# Bug COSTS-153 - User List in cost report is generated unsorted

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-153

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Costs and budgets |
| Target versions | 17.1.0 |
| Observed in versions | 16.5.0 |
| Bug found in version (deprecated) | 16.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Mir Bhatia |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

<br>

1.  Login as a user with permissions access a *times and costs* module and to log times for other users

2.  Make sure you have times logged for diferent users, preferable with different names

3.  Open the global *time and costs* module

4.  Filter for user = several users with logged time

5.  Select rows = user

6.  Generate the xls report

### What is the buggy behavior?

<br>

  - The user list is not sorted alphabetically, which makes it difficult to navigate the report quickly

### What is the expected behavior?

<br>

1.  The list is sorted by date (if present) and then by (last) name

### Screenshots and other files

<br>

This seems to be similar to a previously solved bug:

<mention class="mention" data-id="43829" data-type="work_package" data-text="##43829">\#\#43829</mention> 

<br>

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

  - Hosted cloud edition

**OpenProject version**

*16.5.1*

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [x] Other (Vivaldi)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*EN tested*
