Fixed sorting in ActualOutput