OpsMgr: Sample Blue Bar State Widget Template Sorted

I really like this Wei Out there template, and also this that gives a overview of the Send Queue Size of the SCOM agent. Though I’m lazy and do not like that I have to click the performance counter column so it will sort by it. That is why I have added some code so it will, though you will lose the state column to the sorting logic. But I’m fine with that. I also added the option to only show the Top N highest values.

Here is the changed code:

View the code on Gist.

Happy Tinkering!