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

8
LINES

< > BotCompany Repo | #1023563 // sortByFieldInPlace

JavaX fragment (include)

static <A> L<A> sortByFieldInPlace(L<A> l, S field) {
  sort(l, fieldComparator(field));
  ret l;
}

static <A> L<A> mapMethodLike sortByFieldInPlace(S field, L<A> l) {
  ret sortByFieldInPlace(l, field);
}

Author comment

Began life as a copy of #1019101

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023563
Snippet name: sortByFieldInPlace
Eternal ID of this version: #1023563/3
Text MD5: fe21fb67a94a1af48762807fe9a79ed7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-29 02:38:50
Source code size: 213 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 224 / 273
Version history: 2 change(s)
Referenced in: [show references]