Project

General

Profile

1

    
2
export function sortAlpgabetically (array: any[]) {
3
  array.sort(function(a,b){
4
    if(a < b ){
5
      return -1;
6
    } else if(a > b ){
7
      return 1;
8
    } else {
9
      return 0;
10
    }
11
  });
12
}
(7-7/7)