Help for this page

Select Code to Download


  1. or download this
    someList.Sort((a, b) => a.Foo.CompareTo(b.Foo));
    
  2. or download this
    someList.Sort((a, b) => a.Foo <=> b.Foo);
    
  3. or download this
    var first = someList.Find(e => e.Foo >= bar);
    
  4. or download this
    @someList = sort { $a->Foo <=> $b->Foo } @someList;
    
  5. or download this
    @someList = sort { $a->Foo <=> $b->Foo || $a->Bar cmp $b->Bar } @someL
    +ist;
    
  6. or download this
    someList.Sort(
        (a, b) =>
    ...
            return rv;
        }
    );