Sort by added date in descending order

This commit is contained in:
Max Goodhart
2026-01-24 15:29:15 -08:00
parent 66c0c0406b
commit baef3eefbe

View File

@@ -1,6 +1,6 @@
import '@fontsource/noto-sans'
import Color from 'color'
import { range, sortBy, truncate } from 'lodash-es'
import { orderBy, range, truncate } from 'lodash-es'
import { DateTime } from 'luxon'
import { JSX } from 'preact'
import {
@@ -224,7 +224,7 @@ export function useStreamwallState(state: StreamwallState | undefined) {
}
}
const streams = sortBy(stateStreams, ['addedDate', '_id'])
const streams = orderBy(stateStreams, ['addedDate', '_id'], ['desc', 'asc'])
const customStreams = stateStreams.filter((s) => s._dataSource === 'custom')
return {