Sort random tests