1 | static <A, B> L<Pair<A, B>> sortBySecondOfPairsDesc_inPlace(L<Pair<A, B>> l) { |
2 | sort(l, new Comparator<Pair<A, B>>() { |
3 | public int compare(Pair<A, B> a, Pair<A, B> b) { |
4 | ret stdcompare(b.b, a.b); |
5 | } |
6 | }); |
7 | ret l; |
8 | } |
Began life as a copy of #1011721
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027282 |
Snippet name: | sortBySecondOfPairsDesc_inPlace |
Eternal ID of this version: | #1027282/1 |
Text MD5: | b919b45f5755c2fe7abc7aedc7fe3068 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-29 16:17:29 |
Source code size: | 234 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 207 / 240 |
Referenced in: | [show references] |