mariana-marcal-santana commented on code in PR #47849:
URL: https://github.com/apache/airflow/pull/47849#discussion_r2061401089
##########
airflow/ui/src/pages/Asset/Asset.tsx:
##########
@@ -37,8 +37,8 @@ export const Asset = () => {
const { setTableURLState, tableURLState } = useTableURLState();
const { pagination, sorting } = tableURLState;
- const [sort] = sorting;
- const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` : "-timestamp";
+ const orderBy = new
URLSearchParams(globalThis.location.search).getAll("sort").length === 0 ?
+ ["-timestamp"] : new
URLSearchParams(globalThis.location.search).getAll("sort");
Review Comment:
Hello @bbovenzi @pierrejeambrun !
I've created the function and used it in all places mentioned in
https://github.com/apache/airflow/pull/47849#discussion_r2020629735.
I've also rebased the repo (yesterday) as requested.
I would appreciate any feedback on the implementation! Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]