mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 09:22: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')
|
const customStreams = stateStreams.filter((s) => s._dataSource === 'custom')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export interface StreamDataContent extends ContentDisplayOptions {
|
|||||||
city?: string
|
city?: string
|
||||||
state?: string
|
state?: string
|
||||||
orientation?: 'V' | 'H'
|
orientation?: 'V' | 'H'
|
||||||
|
addedDate?: string
|
||||||
_id?: string
|
_id?: string
|
||||||
_dataSource?: string
|
_dataSource?: string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user