From b22d33a81fce782fc41ea58246763eaffec854d7 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 13 Oct 2020 21:06:04 +0100 Subject: [PATCH] fix(ui): use chanId to sort channel by open date --- renderer/reducers/channels/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/reducers/channels/selectors.js b/renderer/reducers/channels/selectors.js index 09a6cbec2c7..187a23085bd 100644 --- a/renderer/reducers/channels/selectors.js +++ b/renderer/reducers/channels/selectors.js @@ -240,7 +240,7 @@ channelsSelectors.allChannelsRaw = createSelector( const applyChannelSort = (channels, sort, sortOrder) => { const SORTERS = { - [CHANNELS_SORT_OPEN_DATE]: c => c.index, + [CHANNELS_SORT_OPEN_DATE]: c => c.chanId, [CHANNELS_SORT_REMOTE_BALANCE]: c => Number(convert('sats', 'btc', get(c, 'remoteBalance', 0))) || 0, [CHANNELS_SORT_LOCAL_BALANCE]: c =>