Draw multiple objects optimized by sorting