sort profile fields by category, weight, then title and sort users by uid
greggles - September 11, 2006 - 22:13
| Project: | Profile CSV |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Currently the profile_csv modules is inconsistent with the way that data is sorted.
Users:
Mostly the users are sorted by UID, though that is a result of the database and not guaranteed to be consistent by the query format.
Profile fields:
In the profile_csv settings page the fields are sorted by category and title, but not weight.
In the output, profile fields are not sorted.
This patch adds a sort to queries on the users to get them in a consistent order and adds sorts by category, then weight, then title for the profile fields.
| Attachment | Size |
|---|---|
| sort_users_fields.patch | 2.54 KB |

#1
And my apologies - two other things snuck into this:
I added the $Id:$ to the top so that we can get revision and such information in the file.
Also, there is a hunk from http://drupal.org/node/83310 that snuck in on line 178.
My apologies about that last bit - you can safely ignore that problem.
#2
fixed in 4.7 and HEAD.
thanks for Greggles.
#3