I have a list of objects that have a Rank property. This is an integer.
I want to sort by rank on my view, but when I do this:
myObjects = myObjects.Orderby(r=>r.Rank);
i get all zeros (which means they were not set at the top)
I want to order 1 → n, but zeros will be at the bottom of the list.
I would like it to be as effective as possible, since the list is quite long
leora source share