When you try to order input fields by weight, nothing happens.
Fields get default order from executed query.

FIX:
Add SQL "ORDER BY" in db_query sentence inside function profile_load_profile().

Old query:
$result = db_query('SELECT f.name, f.type, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d', $user->uid);

New query:
$result = db_query('SELECT f.name, f.type, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d ORDER BY f.weight ASC', $user->uid);

Comments

drumm’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: +GHOP

I tested this and it seems to work for both the form (user/#/edit/...) and user profile page (user/#). What is the URL of the page you are looking at?

What theme are you using? Any modules which might be involved?

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Considering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.