Sort is case sensitive
See original GitHub issueVersion
@nuxt/content: 1.11.1 nuxt: 2.14.12
Reproduction Link
https://codesandbox.io/s/brave-kowalevski-wur2d
Steps to reproduce
Use two titles: one starting with uppercase and one with lower and them make a sort by title asc
.
What is Expected?
Sort ascending independent of the uppercase or lowercase title.
What is actually happening?
Sort displays the uppercase entries first, then the lowercase ones.
There’s no indication on Docs too, so this seems to be a bug to me.
If isn’t a bug, there a way to make that sort “case insensitive”? Maybe put that note on docs?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Sort records in case-sensitive order
Sort records in case-sensitive order ... Access sorts records in ascending or descending order without regard to case. However, by writing a few...
Read more >Case Sensitive Sorting in Excel
Select a cell within the data that you want to sort and then go to the Data tab and click Sort · In...
Read more >How to perform case-insensitive sorting array of string in ...
I have an array of strings I need to sort in JavaScript, but in a case-insensitive way. How ...
Read more >Examples of case-sensitive and case-insensitive string ...
Examples of case-sensitive and case-insensitive string sorting ; orange; apple; Banana; Pineapple; Grape ; Banana; Grape; Pineapple; apple; orange ; apple; Banana ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
By the way, you can achieve second approach without waiting native support.
Here is a demo (CodeSandbox), where I modify document objects in
content:file:beforeInsert
hook (link to docs), and callsortBy
method with a key whose value is lower case.The PR has been merged, so let me close this issue.