Create a category reader that sorts categories by tree and order before exporting