sort: allow arbitary attributes
Merge branch 'sort_arbitary' of https://github.com/trichter/obspy
fixing test for #684
pep8