X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fpersons%2Fpersons.php;h=85d8b408af24df42d5fa72c89da25af8cd1bf0e4;hb=27bb1ec08d010eb081ac3178cb70834846f1dba1;hp=fc77d6cb09592a921ef1a98e3c6a63d628951fe2;hpb=cd067f08bacfc9e53d9340e71c30ea940c779a77;p=plewww.git diff --git a/planetlab/persons/persons.php b/planetlab/persons/persons.php index fc77d6c..85d8b40 100644 --- a/planetlab/persons/persons.php +++ b/planetlab/persons/persons.php @@ -148,8 +148,11 @@ $headers["R"]="string"; $headers["S" ]= "int"; $headers["Status"]="string"; -// turn off initial sort as this slows stuff down terribly -$table=new PlekitTable("persons",$headers,-1,array('debug'=>true)); +// sort on email +if (! plc_is_admin()) $sort_column=3; +// but turn off initial sort for admins as this slows stuff down terribly +else $sort_column =-1; +$table=new PlekitTable("persons",$headers,$sort_column); $table->start(); $peers=new Peers ($api);