NSSortDiscriptor alternative in cocos2dx

I am porting my game from Cocos2d to Cocos2dx. I have used the following code in a module

    NSMutableArray * tempArray = roomModels;
    NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"displayOrder" ascending:YES];
    [tempArray sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];

Is there any solution to port this code into c++ using Cocos2dx?

You can use std::sort() http://www.cplusplus.com/reference/algorithm/sort/.