export function sortByField (array: Array<any>, field: string){
    array.sort((e1, e2) => {
        var a = e1[field];
        var b = e2[field];
        return (a < b) ? -1 : (a > b) ? 1 : 0;   
    });
}
export function sortByField (array: Array<any>, field: string) : void {
    array.sort((e1, e2) => {
        var a = e1[field];
        var b = e2[field];
        return (a < b) ? -1 : (a > b) ? 1 : 0;   
    });
}
Add void return type to sortByField
Add void return type to sortByField
