Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1011721 // sortBySecondOfPairs_inPlace

JavaX fragment (include)

static <A, B> L<Pair<A, B>> sortBySecondOfPairs_inPlace(L<Pair<A, B>> l) {
  sort(l, new Comparator<Pair<A, B>>() {
    public int compare(Pair<A, B> a, Pair<A, B> b) {
      ret stdcompare(a.b, b.b);
    }
  });
  ret l;
}

Author comment

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: 436 / 463
Version history: 3 change(s)
Referenced in: [show references]