Added ResultDetails so the table generator knows whether it needs to sort