flaschengeist-pricelist/src/utils/sort.ts

8 lines
135 B
TypeScript

function sort(a: string | number, b: string | number) {
if (a > b) return 1;
if (b > a) return -1;
return 0;
}
export { sort };