Hi. I have some problem with sorting out which category of profile(core module) to show on user page first if i have more then one of it.<br>ex:. I create 2 category on administrator page with some fields on each.<br>category A<br>
   field A_A<br>   filed A_B<br>category B<br>  field B_A<br>  field B_B<br>Then user fil in this field with data and try to review it on his page aka (<a href="http://example.com/user/3">example.com/user/3</a>).<br>And it displays the category &quot;B&quot; before  &quot;A&quot; which is not good.<br>
I discover that it gets it from database with query &quot;SELECT * FROM profile_fields WHERE visibility != 4 ORDER BY category, weight.&quot;<br>So there is all good. <br>Then it construct the array of this fields. And Dev_render page show me that all good with order there too. But still on page it on wrong order.<br>
I find the work around that if i add DESC to query on category the display will be ok. <br>Any idea why it happened?<br>PS. Tested on all default theme.<br><br clear="all"><br>-- <br>With best wishes,<br>Anatoly Belyaev<br>