When I go to the Alerts page to see "Triggered Alerts for All Network Devices" the display was sorted by Network Object.
I would prefer to see the alerts sorted by Date/Time, with the most recent alerts at the top.
After digging around I found the right place and added code to do so.
The code to add is:
DataView alertView = new DataView(alertTable,
"alertID <> '' ",
"AlertTime DESC",
DataViewRowState.CurrentRows);
table.DataSource = alertView;
table.DataBind();
In the line "alertID <> '' ", the end of that line is 2 single quotes followed by a space and a double quote. All other quotes shown are double quotes.
This code is added to the function GenerateReport in file x: \InetPub\SolarWinds\Orion\Controls\AlertsReportControl.ascx.cs
Your drive letter may vary.
Specifically, the code goes in the GenerateReport function, after the closing brace for the clause:
if (!this.Printable)
and just above the line
this.AlertActionsTable.Visible = this.Profile.AllowEventClear
If you would like your list sorted with the oldest alerts at the top, then replace "AlertTime DESC", with "AlertTime ASC".
I'm running NPM 10.0 SP1.
So far I haven't seen any adverse effects from the change, and I'm not a developer so I can't guarantee there are not other implications of adding this code.
This snippet was generated after browsing through a few developer forums and MSDN reference pages.