Make sure Echo notifications appear in correct order

Instead of reversing list of notifications do a sort

Also refactor code to be clear on how onError works (it simply
redirects the page so we shouldn't run the other JavaScript)

Bug: 58050
Change-Id: Ic799ef454d214a12457f28db224a952c9488be76
Merge "Make sure Echo notifications appear in correct order"