[O] Sort artworks by date
This commit is contained in:
+4
-1
@@ -99,7 +99,10 @@
|
||||
|
||||
// Add it
|
||||
this.artworks.push(new Artwork(a.date, a.title, a.format));
|
||||
})
|
||||
});
|
||||
|
||||
// Sort by date
|
||||
this.artworks.sort((a, b) => b.date.getTime() - a.date.getTime());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user