By Adam Jackson on Friday, 01 November 2013
Posted in General Issues
Replies 7
Likes 0
Views 639
Votes 0
Hi,

I'd like to set the default sort method to sort automatically by alphabet. Where in the code do I need to change this to automatically sort by alphabet when the page is loaded?

Thanks for your help!!
Hello Adam,

Edit the file /components/com_easysocial/views/users/view.html.php and at line 47 edit the codes below,


$sort = JRequest::getWord( 'sort' , 'latest' );


Replace it with,


$sort = JRequest::getWord( 'sort' , 'alphabetical' );
·
Friday, 01 November 2013 03:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the quick help Mark! That did it!
·
Friday, 01 November 2013 04:38
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Adam I am wondering if we should make this configurable so you don't have to hack this all the time.
·
Friday, 01 November 2013 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
I think that would be a quick thing to make configurable.
·
Friday, 01 November 2013 13:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Got it, adding this as a feature request for 2.0
·
Friday, 01 November 2013 13:50
·
0 Likes
·
0 Votes
·
0 Comments
·
That's awesome! Thanks again!
·
Friday, 01 November 2013 13:56
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Friday, 01 November 2013 14:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post