Re: Structures/Datagrid - sorting on field prior to display with csv data source?
| From: | Olivier Guilyardi | Date: | Tue, 02 Jan 2007 17:07:57 +0000 |
| Subject: | Re: Structures/Datagrid - sorting on field prior to display with csv data source? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26241@lists.php.net to get a copy of this message | ||
Happy new year Mark, ScottZ and everyone !
Mark Wiesemann wrote:
ScottZ wrote:Thanks for pointing this out. But there was no such mistake in the previous example posted by ScottZ: http://marc.theaimsgroup.com/?l=pear-general&m=116731676810115&w=2 This is the one I ran and it worked just fine. Regards, -- OlivierHere's the code:[...]$dgOptions["labels"] = array (I have looked at the described issue. It is not a bug in Structures_DataGrid, it is a small problem in your code. Just change $preSort["Last"] = "ASC"; into $preSort["ln"] = "ASC";"ln" => "Last", "fn" => "First" ); $preSort["Last"] = "ASC";