Revert "Improvements for ordering in custom exports"

Reverts dimagi/commcare-hq#3841