Added ordering and sorting for export, plus some smaller css changes.