Sort apps by time by default

This commit is contained in:
Sam Carlton 2022-05-21 13:30:17 -05:00
parent abe121a963
commit a83583081c

View file

@ -1,6 +1,3 @@
// import { promises as fs } from 'fs'
import fs from 'fs-extra'
import MarkdownIt from 'markdown-it'
import axios from 'axios'
@ -12,6 +9,7 @@ import parseDate from './parse-date'
import { eitherMatches } from './matching.js'
import { getAppEndpoint } from './app-derived'
import { makeSlug } from './slug.js'
import { byTimeThenNull } from './sort-list.js'
import {
cliOptions
@ -440,16 +438,8 @@ export default async function () {
// console.log('appList', appList)
return [
return ([
...appList,
...Array.from( scanListMap, ([name, value]) => value )
]
// fs.readFile('../README.md', 'utf8')
// .then((err, data) => {
// const result = md.parse(data)
// console.log('result', result)
// return result
// })
]).sort( byTimeThenNull )
}