Properly sort GUI quads