tangled
alpha
login
or
join now
cass.cityboundforest.com
/
cityboundforest.com
0
fork
atom
A repo for my personal website
0
fork
atom
overview
issues
pulls
pipelines
Blog is ready to push to prod
cass.cityboundforest.com
7 months ago
d3c72fbf
a23870a2
+2
-2
1 changed file
expand all
collapse all
unified
split
src
blog.ts
+2
-2
src/blog.ts
···
9
9
}).then((data: { records: Array<{ uri: string, value: { title: string, createdAt: string } }> }) => {
10
10
const sortedRecords = data.records.sort((n1, n2) => {
11
11
if (new Date(n1.value.createdAt) > new Date(n2.value.createdAt)) {
12
12
-
return 1;
12
12
+
return -1;
13
13
}
14
14
15
15
if (new Date(n1.value.createdAt) < new Date(n2.value.createdAt)) {
16
16
-
return -1;
16
16
+
return 1;
17
17
}
18
18
19
19
return 0;