static <A, B> L<Pair<A, B>> sortByPairBDesc(Collection<Pair<A, B>> l) { ret sortedByComparator(l, new Comparator<Pair<A, B>>() { public int compare(Pair<A, B> a, Pair<A, B> b) { ret cmp(b.b, a.b); } }); }
Began life as a copy of #1017307
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1021265 |
| Snippet name: | sortByPairBDesc |
| Eternal ID of this version: | #1021265/1 |
| Text MD5: | 59ebdc841f8fcc92bdce7b7859a9d2c3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-06 13:20:38 |
| Source code size: | 228 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 561 / 597 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |