source/sample/transformer/translate/Translator.cpp
void Translator::SortOutputs()
{
    sort(outputBuf->items, outputBuf->items + outputBuf->count,
        [](void* a, void* b) {
            return ((Sample*)(a))->index <
                   ((Sample*)(b))->index;
        });
}
/* sort the outputs by the indices (in ascending order) */
sort the outputs by the indices (in ascending order)
sort the outputs by the indices ( in ascending order )
void Translator::SortOutputs()
{
    sort(outputBuf->items, outputBuf->items + outputBuf->count,
        [](void* a, void* b) {
            return ((Sample*)(a))->index <
                   ((Sample*)(b))->index;
        });
}
void Translator :: SortOutputs ( ) { sort ( outputBuf -> items , outputBuf -> items + outputBuf -> count , [ ] ( void * a , void * b ) { return ( ( Sample * ) ( a ) ) -> index < ( ( Sample * ) ( b ) ) -> index ; } ) ; }
sort the outputs by the indices (in ascending order)
sort the outputs by the indices ( in ascending order )