Sorting returned data

Does this thread helps?