27std::vector<size_t>
OrderAvlRows(
const std::vector<AVL_ROW>& aRows )
29 std::vector<size_t> indices( aRows.size() );
30 std::iota( indices.begin(), indices.end(), 0 );
32 std::sort( indices.begin(), indices.end(),
33 [&](
size_t aLeft,
size_t aRight )
35 int compare = aRows[aLeft].m_oemName.Cmp( aRows[aRight].m_oemName );
40 compare = StrNumCmp( aRows[aLeft].m_reference, aRows[aRight].m_reference, true );
42 return compare != 0 ? compare < 0 : aLeft < aRight;