Dynamic sorting in Draw phase