OrderBy and OrderByDescending


Consider implementing OrderBy, OrderByDescending, ThenBy and ThenByDescending using key-based ordering.
Also consider providing overloads for observable-based ordering (order by coincidence). Although it mirrors the behavior of SelectMany, it may be useful for two reasons:
  1. Semantics. The orderby keyword makes it explicit that the side-effects are being used for ordering; e.g.,
    from x in xs
    from _ in ys
    select x;
    from x in xs
    orderby ys
    select x;
  2. As can be seen in the previous example, it avoids an unnecessary query variable.
    Original discussions:
Closed Mar 10, 2012 at 7:44 AM by davedev
Added in Rxx 1.3.


wrote Feb 26, 2012 at 3:32 PM

Associated with changeset 65407.

wrote Feb 26, 2012 at 3:32 PM

wrote Mar 10, 2012 at 7:44 AM

wrote Feb 21, 2013 at 11:46 PM

wrote May 16, 2013 at 11:30 AM