fixed export sorting