mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-30 00:42:48 -05:00
Sort by added date in descending order
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import '@fontsource/noto-sans'
|
import '@fontsource/noto-sans'
|
||||||
import Color from 'color'
|
import Color from 'color'
|
||||||
import { range, sortBy, truncate } from 'lodash-es'
|
import { orderBy, range, truncate } from 'lodash-es'
|
||||||
import { DateTime } from 'luxon'
|
import { DateTime } from 'luxon'
|
||||||
import { JSX } from 'preact'
|
import { JSX } from 'preact'
|
||||||
import {
|
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')
|
const customStreams = stateStreams.filter((s) => s._dataSource === 'custom')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user