mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
9 lines
205 B
TypeScript
9 lines
205 B
TypeScript
import type { CrudSorting } from "@refinedev/core";
|
|
|
|
export const generateSort = (sorters?: CrudSorting) => {
|
|
return sorters?.map((item) => ({
|
|
field: item.field,
|
|
direction: item.order,
|
|
}));
|
|
};
|