# Bug OP-15696 - Sorting by link custom field causes exception

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

## Open points

_No work packages_

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Ivan Kuchin |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create a project attribute of type link
    
2.  Go to projects index
    
3.  Add the custom field to visible fields
    
4.  Order by it
    

### What is the buggy behavior?

*   An error is displayed
    

### What is the expected behavior?

1.  No error is displayed
    
2.  Projects are ordered by the link
