Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 10 characters in body
Source Link
fubo
  • 46.2k
  • 20
  • 109
  • 139

I think this is a issue about case sensitivity.

replace

.OrderBy(i => i.StartsWith(queryValue)); 

with

.OrderByOrderByDescending(i => i.StartsWith(queryValue, StringComparison.InvariantCultureIgnoreCase)); 

because "Ready Set".StartsWith("read") will return false

I think this is a issue about case sensitivity.

replace

.OrderBy(i => i.StartsWith(queryValue)); 

with

.OrderBy(i => i.StartsWith(queryValue, StringComparison.InvariantCultureIgnoreCase)); 

because "Ready Set".StartsWith("read") will return false

I think this is a issue about case sensitivity.

replace

.OrderBy(i => i.StartsWith(queryValue)); 

with

.OrderByDescending(i => i.StartsWith(queryValue, StringComparison.InvariantCultureIgnoreCase)); 

because "Ready Set".StartsWith("read") will return false

Source Link
fubo
  • 46.2k
  • 20
  • 109
  • 139

I think this is a issue about case sensitivity.

replace

.OrderBy(i => i.StartsWith(queryValue)); 

with

.OrderBy(i => i.StartsWith(queryValue, StringComparison.InvariantCultureIgnoreCase)); 

because "Ready Set".StartsWith("read") will return false