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

7
LINES

< > BotCompany Repo | #1019661 // sortFilesAlphaNum

JavaX fragment (include)

static L<File> sortFilesAlphaNum(L<File> l) {
  ret sorted(l, new Comparator<File>() {
    public int compare(File a, File b) {
      ret cmpAlphaNum(a.getName(), b.getName());
    }
  });
}

Author comment

Began life as a copy of #1001850

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019661
Snippet name: sortFilesAlphaNum
Eternal ID of this version: #1019661/1
Text MD5: a0cde5b92325876a2fae9d97c25b5908
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-16 22:28:44
Source code size: 196 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 303 / 343
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020598 - sortFilesAlphaNumIC