static WebTree webTree_sortChildrenByRelationText(WebTree tree) { sortList(tree.children, makeComparator(func(Pair<WebNode, WebTree> a, Pair<WebNode, WebTree> b) { stdCompare(web_text(a.a), web_text(b.a)) })); for (Pair<WebNode, WebTree> p : tree.children) webTree_sortChildrenByRelationText(p.b); ret tree; }
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: | #1010249 |
| Snippet name: | webTree_sortChildrenByRelationText - modifies original tree |
| Eternal ID of this version: | #1010249/1 |
| Text MD5: | 62057fea6d3e3b5441c349ac85fb4c4b |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-07 18:39:06 |
| Source code size: | 332 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 643 / 640 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010251 - webTree_sortChildren - sorts by (relation text, node text) - modifies original tree |