Improvements for ordering in custom exports

http://manage.dimagi.com/default.asp?86347#695228
This could be changed to

```js
return (compare(y_selected, x_selected)
    || compare(x_tag, y_tag)
    || compare(x_display, y_display));
```
and eliminate above two conditional returns.