fixed the sorting within contrast info summary when dealing with multiple factors and added a test for it