Files
HiveGrid-Wireframes/hivegrid-cloud/apps/web/app/utils/helpers/TableHelper.ts
T

6 lines
134 B
TypeScript

export function getSortedItems(items: any[]) {
return items.slice().sort((x, y) => {
return x.order > y.order ? 1 : -1;
});
}