mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -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 fs from 'fs-extra'
|
||||||
import MarkdownIt from 'markdown-it'
|
import MarkdownIt from 'markdown-it'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
@ -12,6 +9,7 @@ import parseDate from './parse-date'
|
||||||
import { eitherMatches } from './matching.js'
|
import { eitherMatches } from './matching.js'
|
||||||
import { getAppEndpoint } from './app-derived'
|
import { getAppEndpoint } from './app-derived'
|
||||||
import { makeSlug } from './slug.js'
|
import { makeSlug } from './slug.js'
|
||||||
|
import { byTimeThenNull } from './sort-list.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
cliOptions
|
cliOptions
|
||||||
|
|
@ -440,16 +438,8 @@ export default async function () {
|
||||||
// console.log('appList', appList)
|
// console.log('appList', appList)
|
||||||
|
|
||||||
|
|
||||||
return [
|
return ([
|
||||||
...appList,
|
...appList,
|
||||||
...Array.from( scanListMap, ([name, value]) => value )
|
...Array.from( scanListMap, ([name, value]) => value )
|
||||||
]
|
]).sort( byTimeThenNull )
|
||||||
|
|
||||||
// fs.readFile('../README.md', 'utf8')
|
|
||||||
// .then((err, data) => {
|
|
||||||
// const result = md.parse(data)
|
|
||||||
// console.log('result', result)
|
|
||||||
|
|
||||||
// return result
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue