mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Sort apps by time by default
This commit is contained in:
parent
abe121a963
commit
a83583081c
1 changed files with 3 additions and 13 deletions
|
|
@ -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 )
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue