This commit is contained in:
Lorenz Hübschle-Schneider 2024-07-13 14:37:22 +02:00
parent 6ac2e5b4c2
commit 9d0836c2e7
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
export const sortBy = (key) => { export const sortBy = (key) => {
return (a, b) => (a[key] > b[key]) ? 1 : ((b[key] > a[key]) ? -1 : 0); return (a, b) => (a[key] > b[key]) ? 1 : ((b[key] > a[key]) ? -1 : 0);
} };