Skip to content

refactor: sort content by published field #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/content/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import NoData from "@/components/NoData";

interface DataItem {
labels: string[];
index: number;
published: string;
}

const List = (props) => {
Expand Down Expand Up @@ -51,7 +51,7 @@ const List = (props) => {
}}
>
{filteredData
.sort((a, b) => b.index - a.index)
.sort((a, b) => new Date(b.published).getTime() - new Date(a.published).getTime())
.map((item) => (
<Card
color="purple"
Expand Down
1 change: 0 additions & 1 deletion src/contents/0x-on-scroll.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "How to fetch live swap prices with 0x Swap API on Scroll"
index: 7
summary: Learn how to embed crypto trading into your app using 0x Swap API
author: Jessica Lin
authorIcon: https://avatars.githubusercontent.com/u/8042156?v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/build-chance-based-dapp.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "How to build contracts with tamper-proof unpredictability"
index: 9
summary: Learn how to build chance-based contracts using verifiable randomness provided by Anyrand (powered by drand)
author: Anyrand
authorIcon: https://pbs.twimg.com/profile_images/1839241810473865216/dP3Tfkou_400x400.jpg
Expand Down
1 change: 0 additions & 1 deletion src/contents/exploring-solidity-objects-address-part-1.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Exploring Solidity Objects: Address - Part 1"
index: 1
summary: Dive into the world of Solidity in pursuit of leveling up! Starting with Address object.
author: RH
authorIcon: https://pbs.twimg.com/profile_images/1751242830398287872/8VKShh46.jpg
Expand Down
1 change: 0 additions & 1 deletion src/contents/exploring-solidity-objects-address-part-2.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Exploring Solidity Objects: Address - Part 2"
index: 2
summary: Dive into the world of Solidity in pursuit of leveling up! Venturing into delegatecall and staticcall functions!
author: RH
authorIcon: https://pbs.twimg.com/profile_images/1751242830398287872/8VKShh46.jpg
Expand Down
1 change: 0 additions & 1 deletion src/contents/guardrail-ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Guardrail AI Agents with ZKML"
index: 11
summary: Create an AI Agent with Guardrails using EZKL.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/how-to-fetch-scroll-canvas-badges.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "How to Fetch Scroll Canvas Badges"
index: 12
summary: Load Badges by querying EAS and the Scroll Canvas Profile Registry.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/huracan.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "🌀Huracan"
index: 6
summary: Learn ZK by Deploying a Battle Tested Project.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "L1SLOAD guide: Reading Data Structures"
index: 10
summary: Reading Arrays, Structs and Nested Mappings from L1.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/l1sload-guide-read-the-l1-state-from-l2.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "L1SLOAD guide: Read the L1 state from L2"
index: 8
summary: This precompile unlocks the Keystore and more, learn how to use it with examples.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/level-up-foundry.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Level Up: Building with Foundry"
index: 3
summary: Learn smart contract development with Foundry, a blazingly fast framework for building and deploying smart contracts!
author: RH
authorIcon: https://pbs.twimg.com/profile_images/1751242830398287872/8VKShh46.jpg
Expand Down
1 change: 0 additions & 1 deletion src/contents/privacy-interfaces-on-soldity-zk-wasm.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Privacy Interfaces on Solidity & zk-WASM"
index: 5
summary: Keep users' data safe by generating proofs in the browser, on Javascript.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Private Smart Contracts with Solidity & Circom"
index: 4
summary: Get started with developing privacy applications by combining Circuits and Smart Contracts.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/stablecoins-module0.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Stablecoins Module 0: ERC20 Standard Recap"
index: 13
summary: Get familiar with the ERC20 format.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/stablecoins-module1.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Stablecoins Module 1: Fiat-Backed Stablecoins"
index: 14
summary: Create a stablecoin with centralized features.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down
1 change: 0 additions & 1 deletion src/contents/stablecoins-module2.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: "Stablecoins Module 2: Crypto-Collateralized Stablecoins"
index: 15
summary: Create a stablecoin with on-chain overcollateralized debt.
author: FilosofiaCodigo
authorIcon: https://avatars.githubusercontent.com/u/707484?s=96&v=4
Expand Down