tests sorting fixed.