summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
df9b422)
Used to be ascending, but descending is more typical.
isDirectory && /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/u.test(date)
).sort(({ name: a }, { name: b }) =>
// Sort the directories.
isDirectory && /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/u.test(date)
).sort(({ name: a }, { name: b }) =>
// Sort the directories.
- a < b ? -1 : a > b ? 1 : 0
+ a < b ? 1 : a > b ? -1 : 0
)
) {
// Iterate over each dated directory and process its entries.
)
) {
// Iterate over each dated directory and process its entries.
isDirectory &&
//deno-lint-ignore no-control-regex
!/[\x00-\x20\x22#%/<>?\\^\x60{|}\x7F]/u.test(entryName)
isDirectory &&
//deno-lint-ignore no-control-regex
!/[\x00-\x20\x22#%/<>?\\^\x60{|}\x7F]/u.test(entryName)
- ).sort(({ name: a }, { name: b }) => a < b ? -1 : a > b ? 1 : 0)
+ ).sort(({ name: a }, { name: b }) =>
+ // Sort the directories.
+ a < b ? 1 : a > b ? -1 : 0
+ )
) {
// Iterate over each entry directory and process its contents.
const entry = document.createElement("entry");
) {
// Iterate over each entry directory and process its contents.
const entry = document.createElement("entry");