All files / utils sortAlphabetically.ts

85.71% Statements 6/7
80% Branches 4/5
100% Functions 2/2
85.71% Lines 6/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 71x 1x 1x 23x 8x   1x
 
// sort alphabetically
export const sortAlphabetically = (a: string, b: string) => {
  if (a < b) return -1;
  if (a > b) return 1;
  return 0;
}