mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-23 01:35:38 +03:00
Let's test this out
This commit is contained in:
parent
88ffb3a44c
commit
1cfef22465
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,12 @@ function Home({ hidden }) {
|
|||
}
|
||||
const allStatuses = await homeIterator.current.next();
|
||||
if (allStatuses.value?.length) {
|
||||
// ENFORCE sort by datetime (Latest first)
|
||||
allStatuses.value.sort((a, b) => {
|
||||
const aDate = new Date(a.createdAt);
|
||||
const bDate = new Date(b.createdAt);
|
||||
return bDate - aDate;
|
||||
});
|
||||
const homeValues = allStatuses.value.map((status) => {
|
||||
saveStatus(status);
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue