Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Evoir] modify_select sort order

Quote Reply
Re: [Evoir] modify_select sort order In reply to
Howdie,

Mel gave me this answer:
Quote:
They only way to do this is to actually modify the code, but Alex will
include this in the next version to sort by alphabetical order, so if I
change your code, it will not affect upgrading in the future, just the
current versions. This is what you need to do:

in the file Modify.pm found in admin/Links/User
find the line that starts the subroutine (around line 400):
sub _list_owned_links {

Then inside here, there will be a line:
$link_db->select_options ("LIMIT " . (($nh-1)*$mh) . ",$mh");
(It's about 6 lines down)
replace this with the line:
$link_db->select_options ("ORDER BY Title ASC", "LIMIT " . (($nh-1)*$mh) .
",$mh");
Subject Author Views Date
Thread modify_select sort order Evoir 7079 Mar 17, 2003, 12:52 PM
Thread Re: [Evoir] modify_select sort order
Evoir 6884 Mar 17, 2003, 6:41 PM
Thread Re: [Evoir] modify_select sort order
MJ_ 6658 Oct 4, 2011, 1:29 PM
Thread Re: [MJ_] modify_select sort order
Andy 6641 Oct 5, 2011, 1:02 AM
Thread Re: [Andy] modify_select sort order
MJ_ 6605 Oct 11, 2011, 7:13 AM
Thread Re: [MJ_] modify_select sort order
Andy 6602 Oct 11, 2011, 11:37 PM
Thread Re: [Andy] modify_select sort order
MJ_ 6579 Oct 17, 2011, 4:11 AM
Thread Re: [MJ_] modify_select sort order
Andy 6578 Oct 17, 2011, 4:14 AM
Post Post deleted by MJ_
MJ_ 6532 Oct 17, 2011, 4:33 AM
Thread Re: [Andy] modify_select sort order
MJ_ 6549 Oct 17, 2011, 4:35 AM
Post Re: [MJ_] modify_select sort order
Andy 6544 Oct 17, 2011, 7:49 AM