mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-28 16:02:49 -05:00
Sort streams by added date
This commit is contained in:
@@ -224,7 +224,7 @@ export function useStreamwallState(state: StreamwallState | undefined) {
|
||||
}
|
||||
}
|
||||
|
||||
const streams = sortBy(stateStreams, ['_id'])
|
||||
const streams = sortBy(stateStreams, ['addedDate', '_id'])
|
||||
const customStreams = stateStreams.filter((s) => s._dataSource === 'custom')
|
||||
|
||||
return {
|
||||
|
||||
@@ -35,6 +35,7 @@ export interface StreamDataContent extends ContentDisplayOptions {
|
||||
city?: string
|
||||
state?: string
|
||||
orientation?: 'V' | 'H'
|
||||
addedDate?: string
|
||||
_id?: string
|
||||
_dataSource?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user