sorted export problem