[8.x] [Security Solution][Notes] - change order for new flyout notes tab from descending to ascending (oldest notes to the top) to be consistent with timeline notes and cases (#193893) (#194032)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution][Notes] - change order for new flyout notes tab
from descending to ascending (oldest notes to the top) to be consistent
with timeline notes and cases
(#193893)](https://github.com/elastic/kibana/pull/193893)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2024-09-25T15:29:13Z","message":"[Security
Solution][Notes] - change order for new flyout notes tab from descending
to ascending (oldest notes to the top) to be consistent with timeline
notes and cases
(#193893)","sha":"eaa02578f68ccf90520e64ae08485500d5e30b96","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","v8.16.0"],"title":"[Security Solution][Notes] -
change order for new flyout notes tab from descending to ascending
(oldest notes to the top) to be consistent with timeline notes and
cases","number":193893,"url":"https://github.com/elastic/kibana/pull/193893","mergeCommit":{"message":"[Security
Solution][Notes] - change order for new flyout notes tab from descending
to ascending (oldest notes to the top) to be consistent with timeline
notes and cases
(#193893)","sha":"eaa02578f68ccf90520e64ae08485500d5e30b96"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193893","number":193893,"mergeCommit":{"message":"[Security
Solution][Notes] - change order for new flyout notes tab from descending
to ascending (oldest notes to the top) to be consistent with timeline
notes and cases
(#193893)","sha":"eaa02578f68ccf90520e64ae08485500d5e30b96"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
This commit is contained in:
Kibana Machine 2024-09-26 03:21:40 +10:00 committed by GitHub
parent 3d649a88c1
commit 462a1c2102
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,7 +99,7 @@ export const NotesList = memo(({ eventId }: NotesListProps) => {
const notes: Note[] = useSelector((state: State) =>
selectSortedNotesByDocumentId(state, {
documentId: eventId,
sort: { field: 'created', direction: 'desc' },
sort: { field: 'created', direction: 'asc' },
})
);