Restored sorting