diff --git a/src/app/view/home/latestblocks/latestblocks.component.ts b/src/app/view/home/latestblocks/latestblocks.component.ts index b58ddff..a8055aa 100644 --- a/src/app/view/home/latestblocks/latestblocks.component.ts +++ b/src/app/view/home/latestblocks/latestblocks.component.ts @@ -88,10 +88,11 @@ export class LatestblocksComponent implements OnInit { console.log("socket result", this.Merged_data); console.log("First page result",this.FirstPageListData); + this.DifferentList.sort((a, b) => (a.blockchain_block_height) - (b.blockchain_block_height)); this.DifferentList.forEach(DifferentList => { this.FirstPageListData.unshift(DifferentList); - //this.createBlock(DifferentList) + this.createBlock(DifferentList) }); console.log("DifferentList",this.DifferentList);