Keyword

Sorting of user list

  • Egbert Oldenboom
  • Egbert Oldenboom's Avatar Topic Author
  • Offline
  • New Member
More
12 years 8 months ago #61672 by Egbert Oldenboom
Sorting of user list was created by Egbert Oldenboom
I'm using K2 with joomla 1.7. I've made a user list, which I've divided into 3 parts, which I display as columns next to each other (to have a better overview). In fact I now have 3 user lists: A-G, H-M and N-Z.. So far so good, see my website www.kunstinlochem.nl/index.php/2011-10-20-18-46-33/info-voor-bezoekers

I would like to have these lists alphabetically sorted, and I did so at the back end . In the back end module you can pick specific users and it says "sort with drag and drop" (see the screenshot). This suggests to me that the ordering displayed at the back end is 'leading'. However, this ordering is not visible at the front end, in fact it is a mess and I cannot see any logic in the displayed ordering (not by items/id's/date).

(For the complete list, alphabetical ordering is no problem). What is going wrong here?

Attachment not found

Attachments:

Please Log in or Create an account to join the conversation.

  • Egbert Oldenboom
  • Egbert Oldenboom's Avatar Topic Author
  • Offline
  • New Member
More
12 years 8 months ago #61673 by Egbert Oldenboom
Replied by Egbert Oldenboom on topic Re: Sorting of user list
anyone? :(

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #61674 by Glen Chancy
Replied by Glen Chancy on topic Re: Sorting of user list
I am having the same issue. I looked in the module code, and it appears to me that when using a specific list, that is is simply sorting by User ID (lowest to highest). I can't see anyway around this other than simply coding the module to pay attention to the listed order.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago - 12 years 2 months ago #61675 by Michael
Replied by Michael on topic Re: Sorting of user list
Hello,

some time ago i found the following solution - sorry i cannot remember where, but it works for me:

in "modules/mod_k2_users/helper.php" after (about line 59):
Log in  or Create an account to join the conversation.

More
12 years 2 months ago #61676 by Lefteris
Replied by Lefteris on topic Re: Sorting of user list
@Michael

Fix added in the SVN. Thanks for your feedback.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago - 12 years 2 months ago #61677 by Greg
Replied by Greg on topic Re: Sorting of user list
works awesome in 2.5 also.

for another slightly different solution, I was using the DB query to sort the list by name instead of me having to re-order everybody all the time. I've used the Ordering value from the Filter Section to help drive behavior in the Specific Users section.

FTP to your installation, navigate to the same file
modules/mod_k2_users/helper.php


line 54:
Log in  or Create an account to join the conversation.