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

5
LINES

< > BotCompany Repo | #1007980 // sortByDescScore - sort list according to map

JavaX fragment (include)

static <A> L<A> sortByDescScore(Collection<A> c, Map<A, ?> map) {
  L<A> l = cloneList(c);
  sort(l, mapComparatorDesc(map));
  ret l;
}

Author comment

Began life as a copy of #1004896

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: #1007980
Snippet name: sortByDescScore - sort list according to map
Eternal ID of this version: #1007980/3
Text MD5: 90ae4bfb26fa2a61b5becd9dc174754a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-18 01:06:30
Source code size: 140 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 488 / 504
Version history: 2 change(s)
Referenced in: [show references]