sorting specs, fixes #2