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

13
LINES

< > BotCompany Repo | #1020405 // sortedByMapElementIC

JavaX fragment (include)

static L<Map> sortedByMapElementIC(Collection<Map> c, final S key) {
  L<Map> l = new ArrayList(c);
  sort(l, new Comparator<Map>() {
    public int compare(Map a, Map b) {
      ret cmpIC(getString(a, key), getString(b, key));
    }
  });
  ret l;
}

static L<Map> sortedByMapElementIC(S key, Collection<Map> c) {
  ret sortedByMapElementIC(c, key);
}

Author comment

Began life as a copy of #1019489

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020405
Snippet name: sortedByMapElementIC
Eternal ID of this version: #1020405/3
Text MD5: 4083eb7ae67dcbaaffaf6cf80f0f4ee0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-19 17:02:10
Source code size: 364 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 351 / 383
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)