Fixed bug with inner charts not sorting by switches