OData / OData/odataorg.github.io
Microsoft.Data.OData v5.8.2: "$orderby" not working with GUID type
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 73
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Description
I'm creating an ASP.NET Web API 2 project and I'm exposing an OData endpoint using the package Microsoft.Data.OData v5.8.2.
When I issue an orderby by a GUID column it returns the data in the same way I entered it in the database (not ordered) but issuing an orderby by another column of type string or int it works as expected.
Here's the URL I'm using:
http://localhost:21157/odata/C_Employees?$orderby=ID
Is this a bug or I'm doing something wrong?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the request against the ASP.NET Web API 2 OData endpoint using Microsoft.Data.OData v5.8.2 and the shown $orderby=ID URL. Compare the GUID result with the working string and int cases, then determine whether the behavior is a confirmed bug or an expected limitation and record the actionable resolution.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100