resolve sorting confusion. fixes #121.