fix(ui): sort recordings by date

fix #174
pull/178/head
sualko 2021-08-04 16:53:47 +02:00
parent 087abffd4b
commit 7414183c4d
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ const RoomRow: React.FC<Props> = (props) => {
<td colSpan={11}> <td colSpan={11}>
<table> <table>
<tbody> <tbody>
{recordings?.map(recording => <RecordingRow key={recording.id} recording={recording} deleteRecording={deleteRecording} storeRecording={storeRecording} />)} {recordings?.sort((r1, r2) => r1.startTime - r2.startTime).map(recording => <RecordingRow key={recording.id} recording={recording} deleteRecording={deleteRecording} storeRecording={storeRecording} />)}
</tbody> </tbody>
</table> </table>
</td> </td>