[BZ 1032033] - Sort unavailable & alerted resources portlet - parent first

Unavailable and alerted resources are now ordered by 1. alert count, 2.
ancestry.length 3. resource name - so when for example platform is DOWN it
will show up in portlet before it's children
'upstream/master'.