1 | static <A> L<A> sortedByFieldDesc_alphaNum(Collection<A> c, final S field) { |
2 | L<A> l = new ArrayList(c); |
3 | sort(l, new Comparator<A>() { |
4 | public int compare(A a, A b) { |
5 | ret compareAlphaNum((S) getOpt(b, field), (S) getOpt(a, field)); |
6 | } |
7 | }); |
8 | ret l; |
9 | } |
10 | |
11 | static <A> L<A> mapMethodLike sortedByFieldDesc_alphaNum(S field, Collection<A> c) { |
12 | ret sortedByFieldDesc_alphaNum(c, field); |
13 | } |
Began life as a copy of #1014032
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019491 |
Snippet name: | sortedByFieldDesc_alphaNum |
Eternal ID of this version: | #1019491/6 |
Text MD5: | e70f547fe9f31a099c08a1da1cc47313 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-07 17:27:23 |
Source code size: | 410 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 243 / 296 |
Version history: | 5 change(s) |
Referenced in: | [show references] |