Revert "fixed sorting"

This reverts commit e2af0f7ca4c8b82ead42921e5dcfb47995b75b5d.