Hi,
i'm wondering if it is possible to sort and then export a feu list to a csv file, i.e. : i sort the users by country field, and then export this list to a file.
With FEU module it is not possible, but perhaps another additionnal module? I searched on the forge but no one seems to do that, or it is not noticed in the infos (?).
Thanks for any help or suggestion!
Sorting and exporting FEU to CSV / text file
- stefhoesli
- Forum Members

- Posts: 56
- Joined: Mon Sep 19, 2011 1:06 pm
Re: Sorting and exporting FEU to CSV / text file
Hi there,
Don't think any module offers that capability. So alternatively, why don't you sort the resulting csv instead? With the unix sort command this can easily be done like this:
sort -t \, -k 2 file.csv
Where you give the position of the element you want to be used as key for sorting after the -k option.
Regards
Stef
Don't think any module offers that capability. So alternatively, why don't you sort the resulting csv instead? With the unix sort command this can easily be done like this:
sort -t \, -k 2 file.csv
Where you give the position of the element you want to be used as key for sorting after the -k option.
Regards
Stef
Re: Sorting and exporting FEU to CSV / text file
Thanks for the tip, i didn't know that was possible in this way, but i want an easier solution for the editors of the site (wich are not specialists).
- stefhoesli
- Forum Members

- Posts: 56
- Joined: Mon Sep 19, 2011 1:06 pm
Re: Sorting and exporting FEU to CSV / text file
Your users could of course also load the csv file into a spreadsheet and sort it there.
But if you insist that the CSV should come pre-formatted in the way you want, then you could create a user defined tag with some smarty / PHP magic that will do the trick. Maybe you want to look at the CGUserDirectory module in order to get some starting points.
But if you insist that the CSV should come pre-formatted in the way you want, then you could create a user defined tag with some smarty / PHP magic that will do the trick. Maybe you want to look at the CGUserDirectory module in order to get some starting points.
