sort3: stupid but work version
sort3: possibly TE