From de6d5959865da5718a665a4ff3030f20f73f92b2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Aug 2019 11:28:14 +0530 Subject: [PATCH] updated --- src/app/view/home/latestblocks/latestblocks.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);