Changed value sort order to ensure that the subject key comes first.