sorting in loaded simulation