Added interfaces sorting function

As described in issue #336, a sorting function would implement the feature to have interfaces up&running listed first.