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

17
LINES

< > BotCompany Repo | #1000784 // sort function

JavaX fragment (include)

static <T> void sort(T[] a, Comparator<? super T> c) {
  if (a != null) Arrays.sort(a, c);
}

static <T> void sort(T[] a) {
  if (a != null) Arrays.sort(a);
}

svoid sort(int[] a) { if (a != null) Arrays.sort(a); }

static <T> void sort(List<T> a, Comparator<? super T> c) {
  if (a != null) Collections.sort(a, c);
}

static void sort(List a) {
  if (a != null) Collections.sort(a);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1000784
Snippet name: sort function
Eternal ID of this version: #1000784/4
Text MD5: 3c405efca7ea259c8af6579062d5cfcd
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-30 19:17:28
Source code size: 401 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 787 / 1772
Version history: 3 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1004613 - sortList - synonym of sort
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018647 - sortDesc
#3000382 - Answer for ferdie (>> t = 1, f = 0)