BuildSolution.NET

  • Latest
  • Contact

orderByDescending

Blog

OrderBy with boolean value | How to put specific values on top of the list

Hi there! I’ve just had to sort some list alphabetically with specific values on top. Here is one of the possible solution. Worth to know: OrderBy sorts items in ascending order [a, b, c, d] [1,2,3,4] Can be use with boolean function False = 0 True = 1 So if we use: Read more…

By boczek, 4 years1 year ago
  • Blog
  • Contact
  • Latest
  • Privacy policy
Hestia | WordPress
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy policy