Added stack names to groups and ordered by stack name

Would be useful for CAPI!