sorting example with TPP