// f: A -> Comparable static <A> L<A> sortByCalculatedField_f1(Collection<A> c, final F1<A, ?> f) { L<A> l = cloneList(c); sort(l, new Comparator<A>() { public int compare(A a, A b) { ret stdcompare(callF(f, a), callF(f, b)); } }); ret l; }
Began life as a copy of #1006712
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011720 |
| Snippet name: | sortByCalculatedField_f1 - faster |
| Eternal ID of this version: | #1011720/5 |
| Text MD5: | eb6e84d4cf8450f6198dd2d3f0217a17 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-16 04:53:30 |
| Source code size: | 271 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 635 / 718 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |