AnsweredAssumed Answered

Sort an array of structures

Question asked by lufi on Nov 26, 2012
Latest reply on Nov 26, 2012 by binying

Hi,
I'm using this sample code from AMD OpenCL SDK and I need help with this:

 

I don't want to sort only one dimensional array, but the array of struct(int, string, string), example:

 

before sort:
2 John Terry
1 Pavel Nedved
3 Jaromir Jagr

 

sorted by first column:
1 Pavel Nedved
2 John Terry
3 Jaromir Jagr

 

Many thanks in advance Lubos.

Outcomes