Added panel sorting