Redmine-1494: added sorted order for narrowerContexts and equivalentContexts