Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1012465 // ai_triplesSortedByDescCreationDate

JavaX fragment (include)

1  
static L<TripleWeb> ai_triplesSortedByDescCreationDate(Collection<TripleWeb> l) {
2  
  L<TripleWeb> l2 = cloneList(l);
3  
  sort(l2, new Comparator<TripleWeb>() {
4  
    public int compare(TripleWeb a, TripleWeb b) {
5  
      ret sign(b.created_compact-a.created_compact);
6  
    }
7  
  });
8  
  ret l2;
9  
}

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: #1012465
Snippet name: ai_triplesSortedByDescCreationDate
Eternal ID of this version: #1012465/3
Text MD5: b106aded00cf0257e222aaf8e4071e04
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-26 05:29:40
Source code size: 292 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 393 / 412
Version history: 2 change(s)
Referenced in: [show references]