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

9
LINES

< > BotCompany Repo | #1014662 // sortedByComparator

JavaX fragment (include)

static <A> L<A> sortedByComparator(Collection<A> l, Comparator<A> c) {
  L<A> l2 = cloneList(l);
  sort(l2, c);
  ret l2;
}

static <A> L<A> sortedByComparator(Comparator<A> c, Collection<A> l) {
  ret sortedByComparator(l, c);
}

Author comment

Began life as a copy of #1006223

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1014662
Snippet name: sortedByComparator
Eternal ID of this version: #1014662/2
Text MD5: 8b595afd54f0c81d7c209e05bbf935a3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-15 03:28:41
Source code size: 233 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 466 / 876
Version history: 1 change(s)
Referenced in: [show references]