I have a QList
of SerialPortInfo
objects. I want to sort it based on the objects' property portName
.
I tried qSort
, but that has been deprecated and it won't compile. I am trying std::sort
but not working so far since not sure what to put at the ??? parameter. I see some examples of std::sort but seems not relevant to my case.
std::sort(serialPortInfoList.first(),serialPortInfoList.end(),???)