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