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   

Travelled to 5 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

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: 63 / 89
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1023563 & http://1023563.tinybrain.de