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

7
LINES

< > BotCompany Repo | #1018540 // sortByIndex2 - different typing

JavaX fragment (include)

1  
static <A> void sortByIndex2(LL<A> l, final int index) {
2  
  sort(l, new Comparator<L<A>>() {
3  
    public int compare(L<A> a, L<A> b) {
4  
      ret cmp(a.get(index), b.get(index));
5  
    }
6  
  });
7  
}

Author comment

Began life as a copy of #1001539

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018540
Snippet name: sortByIndex2 - different typing
Eternal ID of this version: #1018540/1
Text MD5: 69a19cd1d14af837c7fda46b75fb0ddb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-03 22:40:50
Source code size: 195 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 387
Referenced in: [show references]