1 | static L<Map> sortedByMapElement_alphaNum(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 cmpAlphaNum(strOrNull(a.get(key)), strOrNull(b.get(key)); |
6 | } |
7 | }); |
8 | ret l; |
9 | } |
10 | |
11 | static L<Map> sortedByMapElement_alphaNum(S key, Collection<Map> c) { |
12 | ret sortedByMapElement_alphaNum(c, key); |
13 | } |
Began life as a copy of #1010437
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019489 |
| Snippet name: | sortedByMapElement_alphaNum |
| Eternal ID of this version: | #1019489/4 |
| Text MD5: | 852e8b1c097f131f87cdde6c496b321d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-19 16:31:50 |
| Source code size: | 394 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 513 / 582 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |