Please help im stuck on this pls help ( i have to sort the cubes some how) i will give brainliest to who gets it right

Please help im stuck on this pls help i have to sort the cubes some how i will give brainliest to who gets it right class=