1 | static <A> L<A> sortedByField_alphaNum(Cl<A> c, 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(a, field), (S) getOpt(b, field)); |
6 | } |
7 | }); |
8 | ret l; |
9 | } |
10 | |
11 | static <A> L<A> mapMethodLike sortedByField_alphaNum(S field, Collection<A> c) { |
12 | ret sortedByField_alphaNum(c, field); |
13 | } |
Began life as a copy of #1019491
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026507 |
Snippet name: | sortedByField_alphaNum |
Eternal ID of this version: | #1026507/3 |
Text MD5: | 0fcfd057e3ae9334d78a731b55046f80 |
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:00:24 |
Source code size: | 384 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 205 |
Version history: | 2 change(s) |
Referenced in: | [show references] |