ERROR TypeError: Cannot read property ‘sort’ of undefined

When you get ERROR TypeError: Cannot read property ‘sort’ of undefined while running angular app, the main cause of this error would be array initialization in the ‘app.component.ts” file. Solution: Open ‘app.component.ts’ file in your favorite editor and check whether the… Read More!