Revision 52995
Added by Myrto Koukouli over 5 years ago
content-events.component.ts | ||
---|---|---|
44 | 44 |
this.loadingMessage = ''; |
45 | 45 |
if (!this.datasourcesOfUser || !this.datasourcesOfUser.length) { |
46 | 46 |
this.noDatasourcesMessage = loadingUserRepoInfoEmpty; |
47 |
/*} else { |
|
48 |
this.datasourcesOfUser.forEach( |
|
49 |
d => { |
|
50 |
console.log( d['first']['value'],' -> ',d['first']['size'] ); |
|
47 |
} else { |
|
48 |
this.datasourcesOfUser.sort( function(a,b) { |
|
49 |
if ( a['first']['value'] < b['first']['value'] ) { |
|
50 |
return -1; |
|
51 |
} else if (a['first']['value'] > b['first']['value']) { |
|
52 |
return 1; |
|
53 |
} else { |
|
54 |
return 0; |
|
51 | 55 |
} |
52 |
);*/
|
|
56 |
});
|
|
53 | 57 |
} |
54 | 58 |
} |
55 | 59 |
); |
Also available in: Unified diff
almost ready for release