ordering samples