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

7
LINES

< > BotCompany Repo | #1019485 // sortByMethod

JavaX fragment (include)

static <A> L<A> sortByMethod(Collection<A> c, fS method) {
  ret sortByCalculatedField(c, func(A a) -> O { callOpt(a, method) });
}

static <A> L<A> sortByMethod(S method, Collection<A> c) {
  ret sortByMethod(c, method);
}

Author comment

Began life as a copy of #1019008

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019485
Snippet name: sortByMethod
Eternal ID of this version: #1019485/1
Text MD5: ae8ac7c211e17aa7ae0ea9f7ecb3f0c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-09 19:10:20
Source code size: 229 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 216
Referenced in: [show references]