mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-29 00:12:49 -05:00
Sort by added date in descending order
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user