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

5
LINES

< > BotCompany Repo | #1009454 // sortByScore - sort list according to map

JavaX fragment (include)

1  
static <A> L<A> sortByScore(Collection<A> c, Map<A, ?> map) {
2  
  L<A> l = cloneList(c);
3  
  sort(l, mapComparator(map));
4  
  ret l;
5  
}

Author comment

Began life as a copy of #1007980

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: #1009454
Snippet name: sortByScore - sort list according to map
Eternal ID of this version: #1009454/1
Text MD5: fd18aea58be90e9746198e7fc0886017
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-01 23:55:32
Source code size: 132 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 535
Referenced in: [show references]