const data = Social.keys("*/post/meme", "final", { return_type: "BlockHeight", }); if (!data) { return "Loading"; } const accounts = Object.entries(data); const memes = accounts.map((account) => { const accountId = account[0]; const blockHeight = account[1].post.meme; return { accountId, blockHeight }; }); memes.sort((a, b) => b.blockHeight - a.blockHeight); const allWidgets = memes.map((a) => ( <a className="text-decoration-none" href={`#/mob.near/widget/Meme?accountId=${accountId}`} > <Widget src="mob.near/widget/Meme" props={a} /> </a> )); return ( <div className="px-2" style={{ background: "#fff" }}> {allWidgets} </div> );