Orderby() not ordering numbers correctly c#

后端 未结 12 1728
渐次进展
渐次进展 2020-12-15 03:08

I am writing an app for my company and am currently working on the search functionality. When a user searches for an item, I want to display the highest version (which is st

12条回答
  •  星月不相逢
    2020-12-15 03:44

    Why are you sorting if you only need "the highest version"? It sounds like you could avoid some overhead if you used Max().

    Also, you really should change the column type to integer.

提交回复
热议问题