update table.py

make more robust by sorting minerals, also detect and output bridgmanite
update test output