diff --git a/src/pages/v2-pre/stigmata-sets/index.tsx b/src/pages/v2-pre/stigmata-sets/index.tsx index d5b1cf17..548431ed 100644 --- a/src/pages/v2-pre/stigmata-sets/index.tsx +++ b/src/pages/v2-pre/stigmata-sets/index.tsx @@ -3,8 +3,8 @@ import { Box, Card } from '@theme-ui/components' import { NextPageContext } from 'next' import { Flex, Link } from 'theme-ui' -import { StigmataCatalogItem, StigmataSetCatalogItem } from '../../../lib/v2-pre/data/types' -import { loadStigmataCatalog, loadStigmataSetCatalog } from '../../../lib/v2-pre/server/loadData' +import { StigmataSetCatalogItem } from '../../../lib/v2-pre/data/types' +import { loadStigmataSetCatalog } from '../../../lib/v2-pre/server/loadData' import StigmaIcon from '../../../components/v2-pre/StigmaIcon' interface StigmataSetListPageProps { @@ -16,33 +16,52 @@ const StigmataSetListPage = ({ stigmataSetCatalog }: StigmataSetListPageProps) =

Stigmata (Set)

- {stigmataSetCatalog.map(stigmataSet => { - return ( - - - - - {stigmataSet.stigmataList.map(stigma => { - return - })} - - - {stigmataSet.name} - - {/* {stigma.id} */} - - - - ) - })} + {stigmataSetCatalog + .sort((a, b) => { + const aId = getId(a.id) + const bId = getId(b.id) + return bId - aId + + function getId(id: string): number { + if (id === '1290') { + return 129.5 + } + if (id === '132') { + return 0.2 + } + if (id === '120') { + return 0.1 + } + return parseInt(id) + } + }) + .map(stigmataSet => { + return ( + + + + + {stigmataSet.stigmataList.map(stigma => { + return + })} + + + {stigmataSet.name} + + {/* {stigma.id} */} + + + + ) + })}
)