1 | static L<Map> sortedByMapElementIC(Collection<Map> c, final S key) { |
2 | L<Map> l = new ArrayList(c); |
3 | sort(l, new Comparator<Map>() { |
4 | public int compare(Map a, Map b) { |
5 | ret cmpIC(getString(a, key), getString(b, key)); |
6 | } |
7 | }); |
8 | ret l; |
9 | } |
10 | |
11 | static L<Map> sortedByMapElementIC(S key, Collection<Map> c) { |
12 | ret sortedByMapElementIC(c, key); |
13 | } |
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: | 352 / 385 |
Version history: | 2 change(s) |
Referenced in: | [show references] |