static <A> L<A> sorted(Collection<A> c, O comparator) { L<A> l = cloneList(c); sort(l, makeComparator(comparator)); ret l; } static <A> L<A> sorted(Collection<A> c) { L<A> l = cloneList(c); sort(l); ret l; } static <A> L<A> sorted(Comparator<A> comparator, Collection<A> c) { L<A> l = cloneList(c); sort(l, comparator); ret l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003400 |
| Snippet name: | sorted - takes a Collection<A> and an optional func(A, A) -> int |
| Eternal ID of this version: | #1003400/3 |
| Text MD5: | 5126fc758edfdab1ba8e472cac33f5fc |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-17 06:35:49 |
| Source code size: | 364 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 984 / 1343 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |