How to implement custom sort function?

thank you for your answer

and here is what I done here

and what I want is

multiple thread + quick sort on bytes

but I still not finish now .