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

8
LINES

< > BotCompany Repo | #1027282 // sortBySecondOfPairsDesc_inPlace

JavaX fragment (include)

static <A, B> L<Pair<A, B>> sortBySecondOfPairsDesc_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(b.b, a.b);
    }
  });
  ret l;
}

Author comment

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: 138 / 167
Referenced in: [show references]