1

Closed

OrderBy and OrderByDescending

description

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;
    vs.
    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:
    http://social.msdn.microsoft.com/Forums/en-US/rx/thread/b1f5d101-2b94-47c5-9fb6-687e6bc92d4a
    http://social.msdn.microsoft.com/Forums/en-US/rx/thread/d68d9588-fa04-42fe-9a04-cfbed90f3c7e#0f446355-0c16-4963-a763-e56a495b5927
Closed Mar 10, 2012 at 7:44 AM by davedev
Added in Rxx 1.3.

comments

wrote Feb 26, 2012 at 3:32 PM

Associated with changeset 65407.