can sortedbyit support optional "reversed" arguement?

currently, if I only knew the 2-steps method: 
    
    
    var people3 =people1.sortedByIt(it.name)
    
    var people4 = people3.reversed()
    echo people4
    

I don't konw whether the above implementation is high effiency. what if an 
inner way like this 
    
    
    var people4 =people1.sortedByIt(it.name, True)
    
    echo people4
    

Reply via email to