Improvements for ordering in custom exports

http://manage.dimagi.com/default.asp?86347#695228
Because you ripped this first section out, `self.default_order` is no longer referenced anywhere in this file, but it seems like it might be important. Can you explain why it is no longer used for sorting?