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

4
LINES

< > BotCompany Repo | #1029216 // sortArrayInPlace

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (29L/1K).

static <A> A[] sortArrayInPlace(A[] a, Comparator<A> comparator) {
  if (a != null) Arrays.sort(a, comparator);
  ret a;
}

Author comment

Began life as a copy of #1029069

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029216
Snippet name: sortArrayInPlace
Eternal ID of this version: #1029216/1
Text MD5: 80842161758bdec993c2326fb4edb3ed
Transpilation MD5: cd18d995280bdd1acdcc9974e1dd28dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-25 14:44:37
Source code size: 125 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 206
Referenced in: [show references]