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
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.

AttachmentSize
sort_users_fields.patch2.54 KB

#1

greggles - September 11, 2006 - 22:27

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

wafaa - October 10, 2006 - 03:09
Status:needs review» fixed

fixed in 4.7 and HEAD.
thanks for Greggles.

#3

Anonymous - October 24, 2006 - 03:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.