1 | static <A, B> L<Pair<A, B>> sortBySecondOfPairs_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(a.b, b.b); |
5 | } |
6 | }); |
7 | ret l; |
8 | } |
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: | #1011721 |
| Snippet name: | sortBySecondOfPairs_inPlace |
| Eternal ID of this version: | #1011721/4 |
| Text MD5: | e54bba16aae1536a5e75c119cafe51ad |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-05 04:31:21 |
| Source code size: | 230 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 668 / 706 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |